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 | 97 |
98 namespace gfx { | 98 namespace gfx { |
99 class Point; | 99 class Point; |
100 class Range; | 100 class Range; |
101 } | 101 } |
102 | 102 |
103 namespace media { | 103 namespace media { |
104 class CdmFactory; | 104 class CdmFactory; |
105 class DecoderFactory; | 105 class DecoderFactory; |
106 class MediaPermission; | 106 class MediaPermission; |
107 class RemotingRendererController; | |
108 class RemotingSinkObserver; | |
109 class RendererWebMediaPlayerDelegate; | 107 class RendererWebMediaPlayerDelegate; |
110 class SurfaceManager; | 108 class SurfaceManager; |
111 class UrlIndex; | 109 class UrlIndex; |
112 class WebEncryptedMediaClientImpl; | 110 class WebEncryptedMediaClientImpl; |
| 111 |
| 112 namespace remoting { |
| 113 class SinkAvailabilityObserver; |
| 114 } // namespace remoting |
| 115 |
113 } // namespace media | 116 } // namespace media |
114 | 117 |
115 namespace service_manager { | 118 namespace service_manager { |
116 class InterfaceRegistry; | 119 class InterfaceRegistry; |
117 class InterfaceProvider; | 120 class InterfaceProvider; |
118 } | 121 } |
119 | 122 |
120 namespace url { | 123 namespace url { |
121 class Origin; | 124 class Origin; |
122 } | 125 } |
(...skipping 969 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1092 // Sends a reply to the current find operation handling if it was a | 1095 // Sends a reply to the current find operation handling if it was a |
1093 // synchronous find request. | 1096 // synchronous find request. |
1094 void SendFindReply(int request_id, | 1097 void SendFindReply(int request_id, |
1095 int match_count, | 1098 int match_count, |
1096 int ordinal, | 1099 int ordinal, |
1097 const blink::WebRect& selection_rect, | 1100 const blink::WebRect& selection_rect, |
1098 bool final_status_update); | 1101 bool final_status_update); |
1099 | 1102 |
1100 void InitializeBlameContext(RenderFrameImpl* parent_frame); | 1103 void InitializeBlameContext(RenderFrameImpl* parent_frame); |
1101 | 1104 |
1102 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | |
1103 // Creates the RemotingRendererController to control whether to switch to/from | |
1104 // media remoting from/to local playback. | |
1105 std::unique_ptr<media::RemotingRendererController> | |
1106 CreateRemotingRendererController(); | |
1107 #endif | |
1108 | |
1109 // Stores the WebLocalFrame we are associated with. This is null from the | 1105 // Stores the WebLocalFrame we are associated with. This is null from the |
1110 // constructor until BindToWebFrame is called, and it is null after | 1106 // constructor until BindToWebFrame is called, and it is null after |
1111 // frameDetached is called until destruction (which is asynchronous in the | 1107 // frameDetached is called until destruction (which is asynchronous in the |
1112 // case of the main frame, but not subframes). | 1108 // case of the main frame, but not subframes). |
1113 blink::WebLocalFrame* frame_; | 1109 blink::WebLocalFrame* frame_; |
1114 | 1110 |
1115 // Boolean value indicating whether this RenderFrameImpl object is for the | 1111 // Boolean value indicating whether this RenderFrameImpl object is for the |
1116 // main frame or not. It remains accurate during destruction, even when | 1112 // main frame or not. It remains accurate during destruction, even when |
1117 // |frame_| has been invalidated. | 1113 // |frame_| has been invalidated. |
1118 bool is_main_frame_; | 1114 bool is_main_frame_; |
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1244 RendererMediaPlayerManager* media_player_manager_; | 1240 RendererMediaPlayerManager* media_player_manager_; |
1245 RendererMediaSessionManager* media_session_manager_; | 1241 RendererMediaSessionManager* media_session_manager_; |
1246 #endif | 1242 #endif |
1247 | 1243 |
1248 media::SurfaceManager* media_surface_manager_; | 1244 media::SurfaceManager* media_surface_manager_; |
1249 | 1245 |
1250 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) | 1246 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) |
1251 // Lazy-bound pointer to the RemoterFactory service in the browser | 1247 // Lazy-bound pointer to the RemoterFactory service in the browser |
1252 // process. Always use the GetRemoterFactory() accessor instead of this. | 1248 // process. Always use the GetRemoterFactory() accessor instead of this. |
1253 media::mojom::RemoterFactoryPtr remoter_factory_; | 1249 media::mojom::RemoterFactoryPtr remoter_factory_; |
| 1250 |
1254 // An observer for the remoting sink availability that is used by | 1251 // An observer for the remoting sink availability that is used by |
1255 // media::RemotingCdmFactory to initialize media::RemotingSourceImpl. Created | 1252 // media::RemotingCdmFactory to initialize media::RemotingSourceImpl. Created |
1256 // in the constructor of RenderFrameImpl to make sure | 1253 // in the constructor of RenderFrameImpl to make sure |
1257 // media::RemotingSourceImpl be intialized with correct availability info. | 1254 // media::RemotingSourceImpl be intialized with correct availability info. |
1258 // Own by media::RemotingCdmFactory after it is created. | 1255 // Own by media::RemotingCdmFactory after it is created. |
1259 std::unique_ptr<media::RemotingSinkObserver> remoting_sink_observer_; | 1256 std::unique_ptr<media::remoting::SinkAvailabilityObserver> |
| 1257 remoting_sink_observer_; |
1260 #endif | 1258 #endif |
1261 | 1259 |
1262 // The CDM and decoder factory attached to this frame, lazily initialized. | 1260 // The CDM and decoder factory attached to this frame, lazily initialized. |
1263 std::unique_ptr<media::CdmFactory> cdm_factory_; | 1261 std::unique_ptr<media::CdmFactory> cdm_factory_; |
1264 std::unique_ptr<media::DecoderFactory> decoder_factory_; | 1262 std::unique_ptr<media::DecoderFactory> decoder_factory_; |
1265 | 1263 |
1266 // Media resource cache, lazily initialized. | 1264 // Media resource cache, lazily initialized. |
1267 linked_ptr<media::UrlIndex> url_index_; | 1265 linked_ptr<media::UrlIndex> url_index_; |
1268 | 1266 |
1269 // The devtools agent for this frame; only created for main frame and | 1267 // The devtools agent for this frame; only created for main frame and |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1377 bool browser_side_navigation_pending_ = false; | 1375 bool browser_side_navigation_pending_ = false; |
1378 | 1376 |
1379 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1377 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1380 | 1378 |
1381 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1379 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1382 }; | 1380 }; |
1383 | 1381 |
1384 } // namespace content | 1382 } // namespace content |
1385 | 1383 |
1386 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1384 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |