Index: content/renderer/render_frame_impl.h |
diff --git a/content/renderer/render_frame_impl.h b/content/renderer/render_frame_impl.h |
index 8e21346e919135488c0ee73d421c947f1b7d4ad7..df191542fcfe7aca7889db0371f4d81f93e102c1 100644 |
--- a/content/renderer/render_frame_impl.h |
+++ b/content/renderer/render_frame_impl.h |
@@ -104,7 +104,8 @@ class CdmFactory; |
class DecoderFactory; |
class MediaPermission; |
class MediaServiceProvider; |
-class RemotingController; |
+class RemotingRendererController; |
+class RemotingSinkObserver; |
class RendererWebMediaPlayerDelegate; |
class SurfaceManager; |
class UrlIndex; |
@@ -1074,9 +1075,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 |
@@ -1224,6 +1226,11 @@ 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 to initialize |
+ // RemotingSourceImpl when created. Created in the constructor of |
+ // RenderFrameImpl to make sure RemotingSourceImpl can get the availability |
+ // info when created. |
+ std::unique_ptr<media::RemotingSinkObserver> remoting_sink_observer_; |
#endif |
// The CDM and decoder factory attached to this frame, lazily initialized. |