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

Unified Diff: public/platform/modules/navigator_services/WebServicePortProviderClient.h

Issue 1191393003: Update client side navigator.connect API to use ServicePortCollection [1/3] (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@serviceport
Patch Set: address more comments Created 5 years, 6 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 | « public/platform/modules/navigator_services/WebServicePortProvider.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/platform/modules/navigator_services/WebServicePortProviderClient.h
diff --git a/public/platform/modules/navigator_services/WebServicePortProviderClient.h b/public/platform/modules/navigator_services/WebServicePortProviderClient.h
new file mode 100644
index 0000000000000000000000000000000000000000..d1d1a58b04b8a99b51561094caac678dd6724e94
--- /dev/null
+++ b/public/platform/modules/navigator_services/WebServicePortProviderClient.h
@@ -0,0 +1,26 @@
+// Copyright 2015 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.
+
+#ifndef WebServicePortProviderClient_h
+#define WebServicePortProviderClient_h
+
+#include "public/platform/WebCommon.h"
+
+namespace blink {
+
+// Interface implemented by blink, used for communication back from embedding
+// code to blink. An instance of this interface is passed to the embedder when
+// a WebServicePortProvider is created.
+class WebServicePortProviderClient {
+public:
+ // Post a message to one of the ports owned by a ServicePortCollection.
+ virtual void postMessage(WebServicePortID, const WebString&, const WebMessagePortChannelArray&) = 0;
+
+protected:
+ virtual ~WebServicePortProviderClient() {}
+};
+
+} // namespace blink
+
+#endif // WebServicePortProviderClient_h
« no previous file with comments | « public/platform/modules/navigator_services/WebServicePortProvider.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698