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

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

Issue 2355723004: [Presentation API] 1-UA: send message between controller and receiver page (Closed)
Patch Set: Merge with changes in Issue 2343013002 Created 4 years, 3 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
Index: third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h
diff --git a/third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h b/third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h
index d2b4d60abade05692b86b949414c8a2384129364..4cb105f2696aeedaf17baff08001a0d31c544251 100644
--- a/third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h
+++ b/third_party/WebKit/public/platform/modules/presentation/WebPresentationClient.h
@@ -86,6 +86,15 @@ public:
virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0;
};
+class WebPresentationMessageObserver {
+public:
+ // Called when a text message of a session is received.
+ virtual void didReceiveSessionTextMessage(WebPresentationConnectionClient*, const WebString& message) = 0;
+
+ // Called when a binary message of a session is received.
+ virtual void didReceiveSessionBinaryMessage(WebPresentationConnectionClient*, const uint8_t* data, size_t length) = 0;
+};
+
} // namespace blink
#endif // WebPresentationClient_h

Powered by Google App Engine
This is Rietveld 408576698