| Index: content/renderer/presentation/presentation_dispatcher.h
|
| diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h
|
| index 471e73f9d56b37c272c7e9c571ac0e7d25e4d74e..380954f4f0b7aaa2b88f0b48e1bbffcbef128cab 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
|
| @@ -131,7 +133,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.
|
| @@ -146,6 +149,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_;
|
|
|