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 |