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

Unified Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 2471263003: [Presentation API] (4th)(1-UA blink side) Add WebPresentationConnection and WebPresentationConnecti… (Closed)
Patch Set: rebase and resolve code review comments from haraken 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: content/renderer/presentation/presentation_dispatcher.h
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h
index 057a91d584802d96f8127e59eee5121f9cc372db..471e73f9d56b37c272c7e9c571ac0e7d25e4d74e 100644
--- a/content/renderer/presentation/presentation_dispatcher.h
+++ b/content/renderer/presentation/presentation_dispatcher.h
@@ -75,17 +75,23 @@ class CONTENT_EXPORT PresentationDispatcher
const blink::WebVector<blink::WebURL>& presentationUrls,
const blink::WebString& presentationId,
blink::WebPresentationConnectionClientCallbacks* callback) override;
- void sendString(const blink::WebURL& presentationUrl,
- const blink::WebString& presentationId,
- const blink::WebString& message) override;
- void sendArrayBuffer(const blink::WebURL& presentationUrl,
- const blink::WebString& presentationId,
- const uint8_t* data,
- size_t length) override;
- void sendBlobData(const blink::WebURL& presentationUrl,
- const blink::WebString& presentationId,
- const uint8_t* data,
- size_t length) override;
+ void sendString(
+ const blink::WebURL& presentationUrl,
+ const blink::WebString& presentationId,
+ const blink::WebString& message,
+ const blink::WebPresentationConnectionProxy* connection_proxy) override;
+ void sendArrayBuffer(
+ const blink::WebURL& presentationUrl,
+ const blink::WebString& presentationId,
+ const uint8_t* data,
+ size_t length,
+ const blink::WebPresentationConnectionProxy* connection_proxy) override;
+ void sendBlobData(
+ const blink::WebURL& presentationUrl,
+ const blink::WebString& presentationId,
+ const uint8_t* data,
+ size_t length,
+ const blink::WebPresentationConnectionProxy* connection_proxy) override;
void closeSession(const blink::WebURL& presentationUrl,
const blink::WebString& presentationId) override;
void terminateSession(const blink::WebURL& presentationUrl,
@@ -130,8 +136,12 @@ class CONTENT_EXPORT PresentationDispatcher
// Call to PresentationService to send the message in |request|.
// |session_info| and |message| of |reuqest| will be consumed.
// |HandleSendMessageRequests| will be invoked after the send is attempted.
- void DoSendMessage(SendMessageRequest* request);
- void HandleSendMessageRequests(bool success);
+ void DoSendMessage(
+ SendMessageRequest* request,
+ const blink::WebPresentationConnectionProxy* connection_proxy);
+ void HandleSendMessageRequests(
+ const blink::WebPresentationConnectionProxy* connection_proxy,
+ bool success);
void ConnectToPresentationServiceIfNeeded();

Powered by Google App Engine
This is Rietveld 408576698