Index: content/renderer/presentation/presentation_dispatcher.h |
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h |
index 1d6c519da1379d8b4c0ac5152eadd3b098688ec2..3ec8da333ff7384e62e9e41fbc8d89f360761aa2 100644 |
--- a/content/renderer/presentation/presentation_dispatcher.h |
+++ b/content/renderer/presentation/presentation_dispatcher.h |
@@ -28,6 +28,7 @@ |
namespace blink { |
class WebPresentationAvailabilityObserver; |
+class WebPresentationConnection; |
class WebPresentationReceiver; |
class WebString; |
class WebURL; |
@@ -62,6 +63,8 @@ class CONTENT_EXPORT PresentationDispatcher |
FRIEND_TEST_ALL_PREFIXES(PresentationDispatcherTest, TestSendString); |
FRIEND_TEST_ALL_PREFIXES(PresentationDispatcherTest, TestSendArrayBuffer); |
FRIEND_TEST_ALL_PREFIXES(PresentationDispatcherTest, TestSendBlobData); |
+ FRIEND_TEST_ALL_PREFIXES(PresentationDispatcherTest, |
+ TestOnReceiverConnectionAvailable); |
FRIEND_TEST_ALL_PREFIXES(PresentationDispatcherTest, TestCloseSession); |
FRIEND_TEST_ALL_PREFIXES(PresentationDispatcherTest, TestTerminateSession); |
FRIEND_TEST_ALL_PREFIXES(PresentationDispatcherTest, |
@@ -175,6 +178,17 @@ class CONTENT_EXPORT PresentationDispatcher |
void DoSendMessage(SendMessageRequest* request); |
void HandleSendMessageRequests(bool success); |
+ // Creates ControllerConnectionProxy object |controller_connection_proxy| with |
+ // |connection|. Sends mojo interface ptr of |controller_connection_proxy| |
+ // and mojo interface request of |controller_connection_proxy|'s |
+ // |target_connection_| to PresentationService. |
+ // |session_info|: |connection|'s id and url; |
+ // |connection|: |controller_connection_proxy|'s |source_connection_|. Raw |
+ // pointer to Blink connection owning proxy object. It does not take object |
+ // ownership. |
+ void SetControllerConnection(const PresentationSessionInfo& session_info, |
+ blink::WebPresentationConnection* connection); |
+ |
virtual void ConnectToPresentationServiceIfNeeded(); |
void UpdateListeningState(); |