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..71201ef16a1a8b73d6ec742dd29108e85c62038c |
--- /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() { } |
tkent
2015/06/25 00:07:57
nit: we may omit a space between { and }
Marijn Kruisselbrink
2015/06/25 01:07:26
Done
|
+}; |
+ |
+} // namespace blink |
+ |
+#endif // WebServicePortProviderClient_h |