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

Side by Side 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 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 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 namespace gfx { 90 namespace gfx {
91 class Point; 91 class Point;
92 class Range; 92 class Range;
93 class Rect; 93 class Rect;
94 } 94 }
95 95
96 namespace media { 96 namespace media {
97 class CdmFactory; 97 class CdmFactory;
98 class DecoderFactory; 98 class DecoderFactory;
99 class MediaPermission; 99 class MediaPermission;
100 class RemotingController; 100 class RemotingRendererController;
101 class RemotingSinkObserver;
101 class RendererWebMediaPlayerDelegate; 102 class RendererWebMediaPlayerDelegate;
102 class SurfaceManager; 103 class SurfaceManager;
103 class UrlIndex; 104 class UrlIndex;
104 class WebEncryptedMediaClientImpl; 105 class WebEncryptedMediaClientImpl;
105 } 106 }
106 107
107 namespace service_manager { 108 namespace service_manager {
108 class InterfaceRegistry; 109 class InterfaceRegistry;
109 class InterfaceProvider; 110 class InterfaceProvider;
110 } 111 }
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
1055 // synchronous find request. 1056 // synchronous find request.
1056 void SendFindReply(int request_id, 1057 void SendFindReply(int request_id,
1057 int match_count, 1058 int match_count,
1058 int ordinal, 1059 int ordinal,
1059 const blink::WebRect& selection_rect, 1060 const blink::WebRect& selection_rect,
1060 bool final_status_update); 1061 bool final_status_update);
1061 1062
1062 void InitializeBlameContext(RenderFrameImpl* parent_frame); 1063 void InitializeBlameContext(RenderFrameImpl* parent_frame);
1063 1064
1064 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 1065 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
1065 // Creates the RemotingController to control whether to switch to/from media 1066 // Creates the RemotingRendererController to control whether to switch to/from
1066 // remoting from/to local playback. 1067 // media remoting from/to local playback.
1067 std::unique_ptr<media::RemotingController> CreateRemotingController(); 1068 std::unique_ptr<media::RemotingRendererController>
1069 CreateRemotingRendererController();
1068 #endif 1070 #endif
1069 1071
1070 // Stores the WebLocalFrame we are associated with. This is null from the 1072 // Stores the WebLocalFrame we are associated with. This is null from the
1071 // constructor until BindToWebFrame is called, and it is null after 1073 // constructor until BindToWebFrame is called, and it is null after
1072 // frameDetached is called until destruction (which is asynchronous in the 1074 // frameDetached is called until destruction (which is asynchronous in the
1073 // case of the main frame, but not subframes). 1075 // case of the main frame, but not subframes).
1074 blink::WebLocalFrame* frame_; 1076 blink::WebLocalFrame* frame_;
1075 1077
1076 // Boolean value indicating whether this RenderFrameImpl object is for the 1078 // Boolean value indicating whether this RenderFrameImpl object is for the
1077 // main frame or not. It remains accurate during destruction, even when 1079 // main frame or not. It remains accurate during destruction, even when
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
1205 RendererMediaPlayerManager* media_player_manager_; 1207 RendererMediaPlayerManager* media_player_manager_;
1206 RendererMediaSessionManager* media_session_manager_; 1208 RendererMediaSessionManager* media_session_manager_;
1207 #endif 1209 #endif
1208 1210
1209 media::SurfaceManager* media_surface_manager_; 1211 media::SurfaceManager* media_surface_manager_;
1210 1212
1211 #if BUILDFLAG(ENABLE_MEDIA_REMOTING) 1213 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
1212 // Lazy-bound pointer to the RemoterFactory service in the browser 1214 // Lazy-bound pointer to the RemoterFactory service in the browser
1213 // process. Always use the GetRemoterFactory() accessor instead of this. 1215 // process. Always use the GetRemoterFactory() accessor instead of this.
1214 media::mojom::RemoterFactoryPtr remoter_factory_; 1216 media::mojom::RemoterFactoryPtr remoter_factory_;
1217 // An observer for the remoting sink availability that is used by
1218 // media::RemotingCdmFactory to initialize media::RemotingSourceImpl. Created
1219 // in the constructor of RenderFrameImpl to make sure
1220 // media::RemotingSourceImpl be intialized with correct availability info.
1221 // Own by media::RemotingCdmFactory after it is created.
1222 std::unique_ptr<media::RemotingSinkObserver> remoting_sink_observer_;
1215 #endif 1223 #endif
1216 1224
1217 // The CDM and decoder factory attached to this frame, lazily initialized. 1225 // The CDM and decoder factory attached to this frame, lazily initialized.
1218 std::unique_ptr<media::CdmFactory> cdm_factory_; 1226 std::unique_ptr<media::CdmFactory> cdm_factory_;
1219 std::unique_ptr<media::DecoderFactory> decoder_factory_; 1227 std::unique_ptr<media::DecoderFactory> decoder_factory_;
1220 1228
1221 // Media resource cache, lazily initialized. 1229 // Media resource cache, lazily initialized.
1222 linked_ptr<media::UrlIndex> url_index_; 1230 linked_ptr<media::UrlIndex> url_index_;
1223 1231
1224 // The devtools agent for this frame; only created for main frame and 1232 // The devtools agent for this frame; only created for main frame and
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
1329 bool browser_side_navigation_pending_ = false; 1337 bool browser_side_navigation_pending_ = false;
1330 1338
1331 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1339 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1332 1340
1333 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1341 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1334 }; 1342 };
1335 1343
1336 } // namespace content 1344 } // namespace content
1337 1345
1338 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1346 #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