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

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: split renderer related changes into 4th patch 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 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_;

Powered by Google App Engine
This is Rietveld 408576698