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

Side by Side Diff: content/renderer/render_frame_impl.h

Issue 2643253003: Media Remoting Clean-up: Less-redundant naming, style consistency, etc. (Closed)
Patch Set: REBASE Created 3 years, 11 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/renderer/render_frame_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1094 // Sends a reply to the current find operation handling if it was a 1097 // Sends a reply to the current find operation handling if it was a
1095 // synchronous find request. 1098 // synchronous find request.
1096 void SendFindReply(int request_id, 1099 void SendFindReply(int request_id,
1097 int match_count, 1100 int match_count,
1098 int ordinal, 1101 int ordinal,
1099 const blink::WebRect& selection_rect, 1102 const blink::WebRect& selection_rect,
1100 bool final_status_update); 1103 bool final_status_update);
1101 1104
1102 void InitializeBlameContext(RenderFrameImpl* parent_frame); 1105 void InitializeBlameContext(RenderFrameImpl* parent_frame);
1103 1106
1104 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
1105 // Creates the RemotingRendererController to control whether to switch to/from
1106 // media remoting from/to local playback.
1107 std::unique_ptr<media::RemotingRendererController>
1108 CreateRemotingRendererController();
1109 #endif
1110
1111 // Stores the WebLocalFrame we are associated with. This is null from the 1107 // Stores the WebLocalFrame we are associated with. This is null from the
1112 // constructor until BindToWebFrame is called, and it is null after 1108 // constructor until BindToWebFrame is called, and it is null after
1113 // frameDetached is called until destruction (which is asynchronous in the 1109 // frameDetached is called until destruction (which is asynchronous in the
1114 // case of the main frame, but not subframes). 1110 // case of the main frame, but not subframes).
1115 blink::WebLocalFrame* frame_; 1111 blink::WebLocalFrame* frame_;
1116 1112
1117 // Boolean value indicating whether this RenderFrameImpl object is for the 1113 // Boolean value indicating whether this RenderFrameImpl object is for the
1118 // main frame or not. It remains accurate during destruction, even when 1114 // main frame or not. It remains accurate during destruction, even when
1119 // |frame_| has been invalidated. 1115 // |frame_| has been invalidated.
1120 bool is_main_frame_; 1116 bool is_main_frame_;
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
1246 RendererMediaPlayerManager* media_player_manager_; 1242 RendererMediaPlayerManager* media_player_manager_;
1247 RendererMediaSessionManager* media_session_manager_; 1243 RendererMediaSessionManager* media_session_manager_;
1248 #endif 1244 #endif
1249 1245
1250 media::SurfaceManager* media_surface_manager_; 1246 media::SurfaceManager* media_surface_manager_;
1251 1247
1252 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 1248 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
1253 // Lazy-bound pointer to the RemoterFactory service in the browser 1249 // Lazy-bound pointer to the RemoterFactory service in the browser
1254 // process. Always use the GetRemoterFactory() accessor instead of this. 1250 // process. Always use the GetRemoterFactory() accessor instead of this.
1255 media::mojom::RemoterFactoryPtr remoter_factory_; 1251 media::mojom::RemoterFactoryPtr remoter_factory_;
1252
1256 // An observer for the remoting sink availability that is used by 1253 // An observer for the remoting sink availability that is used by
1257 // media::RemotingCdmFactory to initialize media::RemotingSourceImpl. Created 1254 // media::RemotingCdmFactory to initialize media::RemotingSourceImpl. Created
1258 // in the constructor of RenderFrameImpl to make sure 1255 // in the constructor of RenderFrameImpl to make sure
1259 // media::RemotingSourceImpl be intialized with correct availability info. 1256 // media::RemotingSourceImpl be intialized with correct availability info.
1260 // Own by media::RemotingCdmFactory after it is created. 1257 // Own by media::RemotingCdmFactory after it is created.
1261 std::unique_ptr<media::RemotingSinkObserver> remoting_sink_observer_; 1258 std::unique_ptr<media::remoting::SinkAvailabilityObserver>
1259 remoting_sink_observer_;
1262 #endif 1260 #endif
1263 1261
1264 // The CDM and decoder factory attached to this frame, lazily initialized. 1262 // The CDM and decoder factory attached to this frame, lazily initialized.
1265 std::unique_ptr<media::CdmFactory> cdm_factory_; 1263 std::unique_ptr<media::CdmFactory> cdm_factory_;
1266 std::unique_ptr<media::DecoderFactory> decoder_factory_; 1264 std::unique_ptr<media::DecoderFactory> decoder_factory_;
1267 1265
1268 // Media resource cache, lazily initialized. 1266 // Media resource cache, lazily initialized.
1269 linked_ptr<media::UrlIndex> url_index_; 1267 linked_ptr<media::UrlIndex> url_index_;
1270 1268
1271 // The devtools agent for this frame; only created for main frame and 1269 // The devtools agent for this frame; only created for main frame and
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
1379 bool browser_side_navigation_pending_ = false; 1377 bool browser_side_navigation_pending_ = false;
1380 1378
1381 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1379 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1382 1380
1383 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1381 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1384 }; 1382 };
1385 1383
1386 } // namespace content 1384 } // namespace content
1387 1385
1388 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1386 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW
« 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