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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2389473002: Media Remoting: Add RemotingController. (Closed)
Patch Set: Use BUILDFLAG. 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: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index b5904b226ef97ff5fef68b2a10a4ea16a8f1bea8..a39ffc46d7a2c81b2cd02fd99906c939923378dd 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -105,6 +105,7 @@ class CdmFactory;
class DecoderFactory;
class MediaPermission;
class MediaServiceProvider;
+class RemotingController;
class RendererWebMediaPlayerDelegate;
class SurfaceManager;
class UrlIndex;
@@ -1020,7 +1021,10 @@ class CONTENT_EXPORT RenderFrameImpl
shell::mojom::InterfaceProvider* GetMediaInterfaceProvider();
#endif
+#if BUILDFLAG(ENABLE_MEDIA_REMOTING)
media::mojom::RemoterFactory* GetRemoterFactory();
+#endif
+
media::CdmFactory* GetCdmFactory();
media::DecoderFactory* GetDecoderFactory();
@@ -1048,6 +1052,12 @@ class CONTENT_EXPORT RenderFrameImpl
void InitializeBlameContext(RenderFrameImpl* parent_frame);
+#if BUILDFLAG(ENABLE_MEDIA_REMOTING)
+ // Creates the RemotingController to control whether to switch to/from media
+ // remoting from/to local playback.
+ std::unique_ptr<media::RemotingController> CreateRemotingController();
+#endif
+
// Stores the WebLocalFrame we are associated with. This is null from the
// constructor until BindToWebFrame is called, and it is null after
// frameDetached is called until destruction (which is asynchronous in the
@@ -1186,9 +1196,11 @@ class CONTENT_EXPORT RenderFrameImpl
media::SurfaceManager* media_surface_manager_;
+#if BUILDFLAG(ENABLE_MEDIA_REMOTING)
// Lazy-bound pointer to the RemoterFactory service in the browser
// process. Always use the GetRemoterFactory() accessor instead of this.
media::mojom::RemoterFactoryPtr remoter_factory_;
+#endif
// The CDM and decoder factory attached to this frame, lazily initialized.
std::unique_ptr<media::CdmFactory> cdm_factory_;

Powered by Google App Engine
This is Rietveld 408576698