Index: content/renderer/presentation/presentation_dispatcher.h |
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h |
index 9ac962dfd491c087d34e169c655f834940c54033..86a14ef444f86008c16b09f68421a5b8ae261ebf 100644 |
--- a/content/renderer/presentation/presentation_dispatcher.h |
+++ b/content/renderer/presentation/presentation_dispatcher.h |
@@ -23,6 +23,7 @@ |
namespace blink { |
class WebPresentationAvailabilityObserver; |
+class WebPresentationReceiver; |
class WebString; |
template <typename T> |
class WebVector; |
@@ -63,6 +64,8 @@ class CONTENT_EXPORT PresentationDispatcher |
// WebPresentationClient implementation. |
void setController(blink::WebPresentationController* controller) override; |
+ void setReceiver(blink::WebPresentationReceiver*) override; |
+ |
void startSession( |
const blink::WebVector<blink::WebString>& presentationUrls, |
blink::WebPresentationConnectionClientCallbacks* callback) override; |
@@ -119,6 +122,8 @@ class CONTENT_EXPORT PresentationDispatcher |
blink::WebPresentationConnectionClientCallbacks* callback, |
blink::mojom::PresentationSessionInfoPtr session_info, |
blink::mojom::PresentationErrorPtr error); |
+ void OnReceiverConnectionAvailable( |
+ blink::mojom::PresentationSessionInfoPtr) override; |
// Call to PresentationService to send the message in |request|. |
// |session_info| and |message| of |reuqest| will be consumed. |
@@ -132,6 +137,7 @@ class CONTENT_EXPORT PresentationDispatcher |
// Used as a weak reference. Can be null since lifetime is bound to the frame. |
blink::WebPresentationController* controller_; |
+ blink::WebPresentationReceiver* m_receiver; |
mlamouri (slow - plz ping)
2016/09/15 10:49:39
style: `receiver_`
zhaobin
2016/09/15 18:56:03
Done.
|
blink::mojom::PresentationServicePtr presentation_service_; |
mojo::Binding<blink::mojom::PresentationServiceClient> binding_; |