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(); |