// Copyright 2017 The Chromium Authors. All rights reserved. | |
// Use of this source code is governed by a BSD-style license that can be | |
// found in the LICENSE file. | |
module headless; | |
interface TabSocket { | |
// Send a message from the Tab to C++ embedder. | |
SendMessageToEmbedder(string message); | |
// Waits for the next message to sent from the embedder C++ to the tab. | |
// NB this is non-blocking. | |
AwaitNextMessageFromEmbedder() => (string message); | |
}; |