summaryrefslogtreecommitdiff
path: root/chromium/headless/lib/tab_socket.mojom
blob: cd90e708dd363f9ba6c9e38b82b225d9dc44af23 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
// 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);
};