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

Unified Diff: chrome/browser/media/router/presentation_service_delegate_impl.h

Issue 2379703002: [Presentation API] (alternative) 1-UA: send message between controller and receiver page (Closed)
Patch Set: rebase with master Created 4 years, 2 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: chrome/browser/media/router/presentation_service_delegate_impl.h
diff --git a/chrome/browser/media/router/presentation_service_delegate_impl.h b/chrome/browser/media/router/presentation_service_delegate_impl.h
index fb63b45a55970065cfcd440df526c45e8c14bd96..21ee5ee72e6400f64c5ff86a8994e0bbe9e6e590 100644
--- a/chrome/browser/media/router/presentation_service_delegate_impl.h
+++ b/chrome/browser/media/router/presentation_service_delegate_impl.h
@@ -35,6 +35,7 @@ namespace media_router {
class MediaRoute;
class MediaSinksObserver;
+class OffscreenPresentationManager;
class PresentationFrameManager;
class RouteRequestResult;
@@ -130,6 +131,14 @@ class PresentationServiceDelegateImpl
const content::PresentationSessionInfo& connection,
const content::PresentationConnectionStateChangedCallback&
state_changed_cb) override;
+ void RegisterReceiverAvailableCallback(
+ const content::ReceiverConnectionAvailableCallback&
+ receiver_available_callback) override;
+ void RegisterOffscreenPresentationConnection(
+ int render_process_id,
+ int render_frame_id,
+ const content::PresentationSessionInfo& session,
+ content::PresentationConnectionPtr connection) override;
// Callback invoked when a default PresentationRequest is started from a
// browser-initiated dialog.
@@ -204,6 +213,8 @@ class PresentationServiceDelegateImpl
std::unique_ptr<PresentationFrameManager> frame_manager_;
+ OffscreenPresentationManager* offscreen_presentation_manager_;
+
base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_;
DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl);

Powered by Google App Engine
This is Rietveld 408576698