Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5950)

Unified Diff: content/renderer/presentation/presentation_dispatcher.h

Issue 2340433003: [Presentation API] 1-UA: notify receiver page when receiver connection becomes available (blink sid… (Closed)
Patch Set: resolve code review comments from dcheng Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/presentation/presentation_dispatcher.h
diff --git a/content/renderer/presentation/presentation_dispatcher.h b/content/renderer/presentation/presentation_dispatcher.h
index 5fae96d67d8bcbe3b3c10e884dc40bb8be4d1d3d..057a91d584802d96f8127e59eee5121f9cc372db 100644
--- a/content/renderer/presentation/presentation_dispatcher.h
+++ b/content/renderer/presentation/presentation_dispatcher.h
@@ -24,6 +24,7 @@
namespace blink {
class WebPresentationAvailabilityObserver;
+class WebPresentationReceiver;
class WebString;
class WebURL;
template <typename T>
@@ -65,6 +66,8 @@ class CONTENT_EXPORT PresentationDispatcher
// WebPresentationClient implementation.
void setController(blink::WebPresentationController* controller) override;
+ void setReceiver(blink::WebPresentationReceiver*) override;
+
void startSession(
const blink::WebVector<blink::WebURL>& presentationUrls,
blink::WebPresentationConnectionClientCallbacks* callback) override;
@@ -121,6 +124,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.
@@ -134,6 +139,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* receiver_;
blink::mojom::PresentationServicePtr presentation_service_;
mojo::Binding<blink::mojom::PresentationServiceClient> binding_;

Powered by Google App Engine
This is Rietveld 408576698