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

Side by Side 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, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WebPresentationClient_h 5 #ifndef WebPresentationClient_h
6 #define WebPresentationClient_h 6 #define WebPresentationClient_h
7 7
8 #include "public/platform/WebCallbacks.h" 8 #include "public/platform/WebCallbacks.h"
9 #include "public/platform/WebCommon.h" 9 #include "public/platform/WebCommon.h"
10 10
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 79
80 // Stop listening to changes in presentation displays availability. The 80 // Stop listening to changes in presentation displays availability. The
81 // observer will no longer be notified in case of a change. 81 // observer will no longer be notified in case of a change.
82 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0; 82 virtual void stopListening(WebPresentationAvailabilityObserver*) = 0;
83 83
84 // Called when a defaultRequest has been set. It sends the url associated 84 // Called when a defaultRequest has been set. It sends the url associated
85 // with it for the embedder. 85 // with it for the embedder.
86 virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0; 86 virtual void setDefaultPresentationUrls(const WebVector<WebURL>&) = 0;
87 }; 87 };
88 88
89 class WebPresentationMessageObserver {
90 public:
91 // Called when a text message of a session is received.
92 virtual void didReceiveSessionTextMessage(WebPresentationConnectionClient*, const WebString& message) = 0;
93
94 // Called when a binary message of a session is received.
95 virtual void didReceiveSessionBinaryMessage(WebPresentationConnectionClient* , const uint8_t* data, size_t length) = 0;
96 };
97
89 } // namespace blink 98 } // namespace blink
90 99
91 #endif // WebPresentationClient_h 100 #endif // WebPresentationClient_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698