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..429e63117e5f5812aa073476e8a1bafab92a7005 100644 |
--- a/content/renderer/presentation/presentation_dispatcher.h |
+++ b/content/renderer/presentation/presentation_dispatcher.h |
@@ -33,6 +33,8 @@ class WebVector; |
namespace content { |
+class PresentationConnectionProxy; |
+ |
// PresentationDispatcher is a delegate for Presentation API messages used by |
// Blink. It forwards the calls to the Mojo PresentationService. |
class CONTENT_EXPORT PresentationDispatcher |
@@ -125,7 +127,8 @@ class CONTENT_EXPORT PresentationDispatcher |
blink::mojom::PresentationSessionInfoPtr session_info, |
blink::mojom::PresentationErrorPtr error); |
void OnReceiverConnectionAvailable( |
- blink::mojom::PresentationSessionInfoPtr) override; |
+ blink::mojom::PresentationSessionInfoPtr, |
+ blink::mojom::PresentationConnectionPtr) override; |
// Call to PresentationService to send the message in |request|. |
// |session_info| and |message| of |reuqest| will be consumed. |
@@ -136,6 +139,9 @@ class CONTENT_EXPORT PresentationDispatcher |
void ConnectToPresentationServiceIfNeeded(); |
void UpdateListeningState(); |
+ std::unique_ptr<PresentationConnectionProxy> |
+ CreateAndSetControllerConnectionProxy( |
+ blink::mojom::PresentationSessionInfoPtr session_info); |
// Used as a weak reference. Can be null since lifetime is bound to the frame. |
blink::WebPresentationController* controller_; |