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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2389473002: Media Remoting: Add RemotingController. (Closed)
Patch Set: Rebased. 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
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/render_frame_impl.h
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h
index d37686edb3dfa012bfbee9fbf2e4034df112da35..2d919a942683bcc063727045d4fd9cbeb114cc79 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;
@@ -1031,7 +1032,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();
@@ -1059,6 +1063,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
@@ -1197,9 +1207,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_;
« no previous file with comments | « content/renderer/BUILD.gn ('k') | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698