OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 5 #ifndef CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 6 #define CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
97 class Point; | 97 class Point; |
98 class Range; | 98 class Range; |
99 class Rect; | 99 class Rect; |
100 } | 100 } |
101 | 101 |
102 namespace media { | 102 namespace media { |
103 class CdmFactory; | 103 class CdmFactory; |
104 class DecoderFactory; | 104 class DecoderFactory; |
105 class MediaPermission; | 105 class MediaPermission; |
106 class MediaServiceProvider; | 106 class MediaServiceProvider; |
107 class RemotingController; | 107 class RemotingRendererController; |
| 108 class RemotingSinkObserver; |
108 class RendererWebMediaPlayerDelegate; | 109 class RendererWebMediaPlayerDelegate; |
109 class SurfaceManager; | 110 class SurfaceManager; |
110 class UrlIndex; | 111 class UrlIndex; |
111 class WebEncryptedMediaClientImpl; | 112 class WebEncryptedMediaClientImpl; |
112 } | 113 } |
113 | 114 |
114 namespace service_manager { | 115 namespace service_manager { |
115 class InterfaceRegistry; | 116 class InterfaceRegistry; |
116 class InterfaceProvider; | 117 class InterfaceProvider; |
117 } | 118 } |
(...skipping 949 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1067 // synchronous find request. | 1068 // synchronous find request. |
1068 void SendFindReply(int request_id, | 1069 void SendFindReply(int request_id, |
1069 int match_count, | 1070 int match_count, |
1070 int ordinal, | 1071 int ordinal, |
1071 const blink::WebRect& selection_rect, | 1072 const blink::WebRect& selection_rect, |
1072 bool final_status_update); | 1073 bool final_status_update); |
1073 | 1074 |
1074 void InitializeBlameContext(RenderFrameImpl* parent_frame); | 1075 void InitializeBlameContext(RenderFrameImpl* parent_frame); |
1075 | 1076 |
1076 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 1077 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
1077 // Creates the RemotingController to control whether to switch to/from media | 1078 // Creates the RemotingRendererController to control whether to switch to/from |
1078 // remoting from/to local playback. | 1079 // media remoting from/to local playback. |
1079 std::unique_ptr<media::RemotingController> CreateRemotingController(); | 1080 std::unique_ptr<media::RemotingRendererController> |
| 1081 CreateRemotingRendererController(); |
1080 #endif | 1082 #endif |
1081 | 1083 |
1082 // Stores the WebLocalFrame we are associated with. This is null from the | 1084 // Stores the WebLocalFrame we are associated with. This is null from the |
1083 // constructor until BindToWebFrame is called, and it is null after | 1085 // constructor until BindToWebFrame is called, and it is null after |
1084 // frameDetached is called until destruction (which is asynchronous in the | 1086 // frameDetached is called until destruction (which is asynchronous in the |
1085 // case of the main frame, but not subframes). | 1087 // case of the main frame, but not subframes). |
1086 blink::WebLocalFrame* frame_; | 1088 blink::WebLocalFrame* frame_; |
1087 | 1089 |
1088 // Boolean value indicating whether this RenderFrameImpl object is for the | 1090 // Boolean value indicating whether this RenderFrameImpl object is for the |
1089 // main frame or not. It remains accurate during destruction, even when | 1091 // main frame or not. It remains accurate during destruction, even when |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1217 RendererMediaPlayerManager* media_player_manager_; | 1219 RendererMediaPlayerManager* media_player_manager_; |
1218 RendererMediaSessionManager* media_session_manager_; | 1220 RendererMediaSessionManager* media_session_manager_; |
1219 #endif | 1221 #endif |
1220 | 1222 |
1221 media::SurfaceManager* media_surface_manager_; | 1223 media::SurfaceManager* media_surface_manager_; |
1222 | 1224 |
1223 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 1225 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
1224 // Lazy-bound pointer to the RemoterFactory service in the browser | 1226 // Lazy-bound pointer to the RemoterFactory service in the browser |
1225 // process. Always use the GetRemoterFactory() accessor instead of this. | 1227 // process. Always use the GetRemoterFactory() accessor instead of this. |
1226 media::mojom::RemoterFactoryPtr remoter_factory_; | 1228 media::mojom::RemoterFactoryPtr remoter_factory_; |
| 1229 // An observer for the remoting sink availability that is used to initialize |
| 1230 // RemotingSourceImpl when created. Created in the constructor of |
| 1231 // RenderFrameImpl to make sure RemotingSourceImpl can get the availability |
| 1232 // info when created. |
| 1233 std::unique_ptr<media::RemotingSinkObserver> remoting_sink_observer_; |
1227 #endif | 1234 #endif |
1228 | 1235 |
1229 // The CDM and decoder factory attached to this frame, lazily initialized. | 1236 // The CDM and decoder factory attached to this frame, lazily initialized. |
1230 std::unique_ptr<media::CdmFactory> cdm_factory_; | 1237 std::unique_ptr<media::CdmFactory> cdm_factory_; |
1231 std::unique_ptr<media::DecoderFactory> decoder_factory_; | 1238 std::unique_ptr<media::DecoderFactory> decoder_factory_; |
1232 | 1239 |
1233 // Media resource cache, lazily initialized. | 1240 // Media resource cache, lazily initialized. |
1234 linked_ptr<media::UrlIndex> url_index_; | 1241 linked_ptr<media::UrlIndex> url_index_; |
1235 | 1242 |
1236 // The devtools agent for this frame; only created for main frame and | 1243 // The devtools agent for this frame; only created for main frame and |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1341 bool browser_side_navigation_pending_ = false; | 1348 bool browser_side_navigation_pending_ = false; |
1342 | 1349 |
1343 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1350 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1344 | 1351 |
1345 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1352 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1346 }; | 1353 }; |
1347 | 1354 |
1348 } // namespace content | 1355 } // namespace content |
1349 | 1356 |
1350 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1357 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |