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

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

Issue 2471573005: [Presentation API] (5th) (1-UA) integrate controller and receiver side for 1-UA messaging (Closed)
Patch Set: rebase Created 4 years, 1 month 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 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_;

Powered by Google App Engine
This is Rietveld 408576698