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

Unified Diff: content/renderer/render_frame_impl.h

Issue 2457563002: Media Remoting: Add remoting control logic for encrypted contents. (Closed)
Patch Set: Addressed comments from PS#12. Fixed ASAN. 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
« no previous file with comments | « no previous file | 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 58ca11cc34f1740169a09457a3d3b2bc40afbfd7..88e8026420886efe19683ab3f13e1f9d5a15aaeb 100644
--- a/content/renderer/render_frame_impl.h
+++ b/content/renderer/render_frame_impl.h
@@ -97,7 +97,8 @@ namespace media {
class CdmFactory;
class DecoderFactory;
class MediaPermission;
-class RemotingController;
+class RemotingRendererController;
+class RemotingSinkObserver;
class RendererWebMediaPlayerDelegate;
class SurfaceManager;
class UrlIndex;
@@ -1062,9 +1063,10 @@ 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();
+ // Creates the RemotingRendererController to control whether to switch to/from
+ // media remoting from/to local playback.
+ std::unique_ptr<media::RemotingRendererController>
+ CreateRemotingRendererController();
#endif
// Stores the WebLocalFrame we are associated with. This is null from the
@@ -1212,6 +1214,12 @@ class CONTENT_EXPORT RenderFrameImpl
// Lazy-bound pointer to the RemoterFactory service in the browser
// process. Always use the GetRemoterFactory() accessor instead of this.
media::mojom::RemoterFactoryPtr remoter_factory_;
+ // An observer for the remoting sink availability that is used by
+ // media::RemotingCdmFactory to initialize media::RemotingSourceImpl. Created
+ // in the constructor of RenderFrameImpl to make sure
+ // media::RemotingSourceImpl be intialized with correct availability info.
+ // Own by media::RemotingCdmFactory after it is created.
+ std::unique_ptr<media::RemotingSinkObserver> remoting_sink_observer_;
#endif
// The CDM and decoder factory attached to this frame, lazily initialized.
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698