Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3339)

Unified Diff: headless/lib/tab_socket.mojom

Issue 2813953002: Add HeadlessTabSocket (Closed)
Patch Set: Change HeadlessTabSocketImpl::SetListener Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « headless/lib/resources/headless_lib_resources.grd ('k') | headless/public/headless_browser_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/lib/tab_socket.mojom
diff --git a/headless/lib/tab_socket.mojom b/headless/lib/tab_socket.mojom
new file mode 100644
index 0000000000000000000000000000000000000000..cd90e708dd363f9ba6c9e38b82b225d9dc44af23
--- /dev/null
+++ b/headless/lib/tab_socket.mojom
@@ -0,0 +1,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);
+};
« no previous file with comments | « headless/lib/resources/headless_lib_resources.grd ('k') | headless/public/headless_browser_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698