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

Unified Diff: third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionProxy.h

Issue 2379703002: [Presentation API] (alternative) 1-UA: send message between controller and receiver page (Closed)
Patch Set: merge with master Created 4 years, 1 month 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
Index: third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionProxy.h
diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionProxy.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionProxy.h
new file mode 100644
index 0000000000000000000000000000000000000000..cf0282778472d01556bafe8bf7ba7a2e5ccffbcc
--- /dev/null
+++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationConnectionProxy.h
@@ -0,0 +1,28 @@
+// Copyright 2016 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 WebPresentationConnectionProxy_h
+#define WebPresentationConnectionProxy_h
+
+namespace blink {
+
+class WebPresentationConnection;
+
+// The implementation the embedder has to provide for the Presentation API to
+// work. This class is used to send messages to a PresentationConnection hosted
+// in a different frame.
+class WebPresentationConnectionProxy {
+ public:
+ virtual ~WebPresentationConnectionProxy() {}
+
+ virtual void SetSourceConnection(blink::WebPresentationConnection*) = 0;
+
+ virtual void SendString(const blink::WebString& message) = 0;
+
+ virtual void SendArrayBuffer(const uint8_t* data, size_t length) = 0;
+};
+
+} // namespace blink
+
+#endif // WebPresentationConnectionProxy_h

Powered by Google App Engine
This is Rietveld 408576698