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

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

Issue 2905613003: Extract media code from RenderFrameImpl (Closed)
Patch Set: Created 3 years, 7 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
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
11 #include <deque> 11 #include <deque>
12 #include <map> 12 #include <map>
13 #include <memory> 13 #include <memory>
14 #include <set> 14 #include <set>
15 #include <string> 15 #include <string>
16 #include <vector> 16 #include <vector>
17 17
18 #include "base/callback.h" 18 #include "base/callback.h"
19 #include "base/files/file_path.h" 19 #include "base/files/file_path.h"
20 #include "base/gtest_prod_util.h" 20 #include "base/gtest_prod_util.h"
21 #include "base/id_map.h" 21 #include "base/id_map.h"
22 #include "base/macros.h" 22 #include "base/macros.h"
23 #include "base/memory/linked_ptr.h"
24 #include "base/memory/ref_counted.h" 23 #include "base/memory/ref_counted.h"
25 #include "base/memory/weak_ptr.h" 24 #include "base/memory/weak_ptr.h"
26 #include "base/observer_list.h" 25 #include "base/observer_list.h"
27 #include "base/optional.h" 26 #include "base/optional.h"
28 #include "base/process/process_handle.h" 27 #include "base/process/process_handle.h"
29 #include "base/single_thread_task_runner.h" 28 #include "base/single_thread_task_runner.h"
30 #include "base/unguessable_token.h" 29 #include "base/unguessable_token.h"
31 #include "build/build_config.h" 30 #include "build/build_config.h"
32 #include "content/common/accessibility_mode.h" 31 #include "content/common/accessibility_mode.h"
33 #include "content/common/associated_interface_registry_impl.h" 32 #include "content/common/associated_interface_registry_impl.h"
34 #include "content/common/download/mhtml_save_status.h" 33 #include "content/common/download/mhtml_save_status.h"
35 #include "content/common/features.h" 34 #include "content/common/features.h"
36 #include "content/common/frame.mojom.h" 35 #include "content/common/frame.mojom.h"
37 #include "content/common/frame_message_enums.h" 36 #include "content/common/frame_message_enums.h"
38 #include "content/common/host_zoom.mojom.h" 37 #include "content/common/host_zoom.mojom.h"
39 #include "content/common/renderer.mojom.h" 38 #include "content/common/renderer.mojom.h"
40 #include "content/common/url_loader_factory.mojom.h" 39 #include "content/common/url_loader_factory.mojom.h"
41 #include "content/public/common/console_message_level.h" 40 #include "content/public/common/console_message_level.h"
42 #include "content/public/common/javascript_dialog_type.h" 41 #include "content/public/common/javascript_dialog_type.h"
43 #include "content/public/common/previews_state.h" 42 #include "content/public/common/previews_state.h"
44 #include "content/public/common/referrer.h" 43 #include "content/public/common/referrer.h"
44 #include "content/public/common/renderer_preferences.h"
45 #include "content/public/common/request_context_type.h" 45 #include "content/public/common/request_context_type.h"
46 #include "content/public/common/stop_find_action.h" 46 #include "content/public/common/stop_find_action.h"
47 #include "content/public/renderer/render_frame.h" 47 #include "content/public/renderer/render_frame.h"
48 #include "content/renderer/frame_blame_context.h" 48 #include "content/renderer/frame_blame_context.h"
49 #include "content/renderer/mojo/blink_interface_provider_impl.h" 49 #include "content/renderer/mojo/blink_interface_provider_impl.h"
50 #include "content/renderer/renderer_webcookiejar_impl.h" 50 #include "content/renderer/renderer_webcookiejar_impl.h"
51 #include "content/renderer/unique_name_helper.h" 51 #include "content/renderer/unique_name_helper.h"
52 #include "ipc/ipc_message.h" 52 #include "ipc/ipc_message.h"
53 #include "ipc/ipc_platform_file.h" 53 #include "ipc/ipc_platform_file.h"
54 #include "media/base/routing_token_callback.h" 54 #include "media/base/routing_token_callback.h"
55 #include "media/blink/webmediaplayer_delegate.h"
56 #include "media/blink/webmediaplayer_params.h"
57 #include "media/mojo/interfaces/remoting.mojom.h"
58 #include "mojo/public/cpp/bindings/associated_binding.h" 55 #include "mojo/public/cpp/bindings/associated_binding.h"
59 #include "mojo/public/cpp/bindings/binding.h" 56 #include "mojo/public/cpp/bindings/binding.h"
60 #include "mojo/public/cpp/bindings/binding_set.h" 57 #include "mojo/public/cpp/bindings/binding_set.h"
61 #include "mojo/public/cpp/system/data_pipe.h" 58 #include "mojo/public/cpp/system/data_pipe.h"
62 #include "ppapi/features/features.h" 59 #include "ppapi/features/features.h"
63 #include "services/service_manager/public/cpp/bind_source_info.h" 60 #include "services/service_manager/public/cpp/bind_source_info.h"
64 #include "services/service_manager/public/cpp/binder_registry.h" 61 #include "services/service_manager/public/cpp/binder_registry.h"
65 #include "services/service_manager/public/interfaces/connector.mojom.h" 62 #include "services/service_manager/public/interfaces/connector.mojom.h"
66 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" 63 #include "services/service_manager/public/interfaces/interface_provider.mojom.h"
67 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h" 64 #include "third_party/WebKit/public/platform/WebEffectiveConnectionType.h"
(...skipping 12 matching lines...) Expand all
80 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h" 77 #include "third_party/WebKit/public/web/WebMeaningfulLayout.h"
81 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h" 78 #include "third_party/WebKit/public/web/WebScriptExecutionCallback.h"
82 #include "ui/gfx/range/range.h" 79 #include "ui/gfx/range/range.h"
83 #include "url/gurl.h" 80 #include "url/gurl.h"
84 #include "url/origin.h" 81 #include "url/origin.h"
85 82
86 #if BUILDFLAG(ENABLE_PLUGINS) 83 #if BUILDFLAG(ENABLE_PLUGINS)
87 #include "content/renderer/pepper/plugin_power_saver_helper.h" 84 #include "content/renderer/pepper/plugin_power_saver_helper.h"
88 #endif 85 #endif
89 86
90 #if defined(OS_ANDROID)
91 #include "content/renderer/media/android/renderer_media_player_manager.h"
92 #endif
93
94 struct FrameMsg_CommitDataNetworkService_Params; 87 struct FrameMsg_CommitDataNetworkService_Params;
95 struct FrameMsg_MixedContentFound_Params; 88 struct FrameMsg_MixedContentFound_Params;
96 struct FrameMsg_PostMessage_Params; 89 struct FrameMsg_PostMessage_Params;
97 struct FrameMsg_SerializeAsMHTML_Params; 90 struct FrameMsg_SerializeAsMHTML_Params;
98 struct FrameMsg_TextTrackSettings_Params; 91 struct FrameMsg_TextTrackSettings_Params;
99 92
100 namespace blink { 93 namespace blink {
101 class WebContentDecryptionModule; 94 class WebContentDecryptionModule;
102 class WebPresentationClient; 95 class WebPresentationClient;
103 class WebPushClient; 96 class WebPushClient;
104 class WebSecurityOrigin; 97 class WebSecurityOrigin;
105 enum class WebCachePolicy; 98 enum class WebCachePolicy;
106 struct WebCompositionUnderline; 99 struct WebCompositionUnderline;
107 struct WebContextMenuData; 100 struct WebContextMenuData;
108 struct WebCursorInfo; 101 struct WebCursorInfo;
109 struct WebFindOptions; 102 struct WebFindOptions;
110 class WebRelatedAppsFetcher; 103 class WebRelatedAppsFetcher;
111 } // namespace blink 104 } // namespace blink
112 105
113 namespace gfx { 106 namespace gfx {
114 class Point; 107 class Point;
115 class Range; 108 class Range;
116 } 109 }
117 110
118 namespace media { 111 namespace media {
119 class CdmFactory;
120 class DecoderFactory;
121 class MediaPermission; 112 class MediaPermission;
122 class RendererWebMediaPlayerDelegate; 113 }
123 class SurfaceManager;
124 class UrlIndex;
125 class WebEncryptedMediaClientImpl;
126
127 namespace remoting {
128 class SinkAvailabilityObserver;
129 } // namespace remoting
130
131 } // namespace media
132 114
133 namespace service_manager { 115 namespace service_manager {
134 class BinderRegistry; 116 class BinderRegistry;
135 class InterfaceProvider; 117 class InterfaceProvider;
136 } 118 }
137 119
138 namespace url { 120 namespace url {
139 class Origin; 121 class Origin;
140 } 122 }
141 123
142 namespace content { 124 namespace content {
143 125
144 class AssociatedInterfaceProviderImpl; 126 class AssociatedInterfaceProviderImpl;
145 class BlinkInterfaceRegistryImpl; 127 class BlinkInterfaceRegistryImpl;
146 class ChildFrameCompositingHelper; 128 class ChildFrameCompositingHelper;
147 class CompositorDependencies; 129 class CompositorDependencies;
148 class DevToolsAgent; 130 class DevToolsAgent;
149 class DocumentState; 131 class DocumentState;
150 class ExternalPopupMenu; 132 class ExternalPopupMenu;
151 class HistoryEntry; 133 class HistoryEntry;
152 class ManifestManager; 134 class ManifestManager;
153 class MediaInterfaceProvider;
154 class MediaStreamDispatcher; 135 class MediaStreamDispatcher;
155 class MediaStreamRendererFactory;
156 class MediaPermissionDispatcher;
157 class NavigationState; 136 class NavigationState;
158 class PepperPluginInstanceImpl; 137 class PepperPluginInstanceImpl;
159 class PresentationDispatcher; 138 class PresentationDispatcher;
160 class PushMessagingClient; 139 class PushMessagingClient;
161 class RelatedAppsFetcher; 140 class RelatedAppsFetcher;
162 class RenderAccessibilityImpl; 141 class RenderAccessibilityImpl;
163 class RendererMediaPlayerManager; 142 class RenderMediaHelper;
164 class RendererPpapiHost; 143 class RendererPpapiHost;
165 class RenderFrameObserver; 144 class RenderFrameObserver;
166 class RenderViewImpl; 145 class RenderViewImpl;
167 class RenderWidget; 146 class RenderWidget;
168 class RenderWidgetFullscreenPepper; 147 class RenderWidgetFullscreenPepper;
169 class ResourceRequestBodyImpl; 148 class ResourceRequestBodyImpl;
170 class ScreenOrientationDispatcher; 149 class ScreenOrientationDispatcher;
171 class SharedWorkerRepository; 150 class SharedWorkerRepository;
172 class UserMediaClientImpl; 151 class UserMediaClientImpl;
173 struct CSPViolationParams; 152 struct CSPViolationParams;
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance); 734 void PepperInstanceDeleted(PepperPluginInstanceImpl* instance);
756 735
757 // Notification that the given plugin is focused or unfocused. 736 // Notification that the given plugin is focused or unfocused.
758 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused); 737 void PepperFocusChanged(PepperPluginInstanceImpl* instance, bool focused);
759 738
760 void PepperStartsPlayback(PepperPluginInstanceImpl* instance); 739 void PepperStartsPlayback(PepperPluginInstanceImpl* instance);
761 void PepperStopsPlayback(PepperPluginInstanceImpl* instance); 740 void PepperStopsPlayback(PepperPluginInstanceImpl* instance);
762 void OnSetPepperVolume(int32_t pp_instance, double volume); 741 void OnSetPepperVolume(int32_t pp_instance, double volume);
763 #endif // ENABLE_PLUGINS 742 #endif // ENABLE_PLUGINS
764 743
744 const RendererPreferences& GetRendererPreferences() const;
745
765 protected: 746 protected:
766 explicit RenderFrameImpl(const CreateParams& params); 747 explicit RenderFrameImpl(const CreateParams& params);
767 748
768 private: 749 private:
769 friend class RenderFrameImplTest; 750 friend class RenderFrameImplTest;
770 friend class RenderFrameObserver; 751 friend class RenderFrameObserver;
771 friend class RenderAccessibilityImplTest; 752 friend class RenderAccessibilityImplTest;
772 friend class TestRenderFrame; 753 friend class TestRenderFrame;
773 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem); 754 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuDisplayNoneTest, SelectItem);
774 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange); 755 FRIEND_TEST_ALL_PREFIXES(ExternalPopupMenuRemoveTest, RemoveOnChange);
(...skipping 260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1035 void HandleJavascriptExecutionResult(const base::string16& javascript, 1016 void HandleJavascriptExecutionResult(const base::string16& javascript,
1036 int id, 1017 int id,
1037 bool notify_result, 1018 bool notify_result,
1038 v8::Local<v8::Value> result); 1019 v8::Local<v8::Value> result);
1039 1020
1040 // Initializes |web_user_media_client_|. If this fails, because it wasn't 1021 // Initializes |web_user_media_client_|. If this fails, because it wasn't
1041 // possible to create a MediaStreamClient (e.g., WebRTC is disabled), then 1022 // possible to create a MediaStreamClient (e.g., WebRTC is disabled), then
1042 // |web_user_media_client_| will remain NULL. 1023 // |web_user_media_client_| will remain NULL.
1043 void InitializeUserMediaClient(); 1024 void InitializeUserMediaClient();
1044 1025
1045 blink::WebMediaPlayer* CreateWebMediaPlayerForMediaStream(
1046 blink::WebMediaPlayerClient* client,
1047 const blink::WebString& sink_id,
1048 const blink::WebSecurityOrigin& security_origin);
1049
1050 // Creates a factory object used for creating audio and video renderers.
1051 std::unique_ptr<MediaStreamRendererFactory> CreateRendererFactory();
1052
1053 // Does preparation for the navigation to |url|. 1026 // Does preparation for the navigation to |url|.
1054 void PrepareRenderViewForNavigation( 1027 void PrepareRenderViewForNavigation(
1055 const GURL& url, 1028 const GURL& url,
1056 const RequestNavigationParams& request_params); 1029 const RequestNavigationParams& request_params);
1057 1030
1058 // PlzNavigate 1031 // PlzNavigate
1059 // Sends a FrameHostMsg_BeginNavigation to the browser 1032 // Sends a FrameHostMsg_BeginNavigation to the browser
1060 void BeginNavigation(const NavigationPolicyInfo& info); 1033 void BeginNavigation(const NavigationPolicyInfo& info);
1061 1034
1062 // Loads a data url. 1035 // Loads a data url.
(...skipping 24 matching lines...) Expand all
1087 // Returns a new NavigationState populated with the navigation information 1060 // Returns a new NavigationState populated with the navigation information
1088 // saved in OnNavigate(). 1061 // saved in OnNavigate().
1089 NavigationState* CreateNavigationStateFromPending(); 1062 NavigationState* CreateNavigationStateFromPending();
1090 1063
1091 // Sets the NavigationState on the DocumentState based on 1064 // Sets the NavigationState on the DocumentState based on
1092 // the value of |pending_navigation_params_|. 1065 // the value of |pending_navigation_params_|.
1093 void UpdateNavigationState(DocumentState* document_state, 1066 void UpdateNavigationState(DocumentState* document_state,
1094 bool was_within_same_page, 1067 bool was_within_same_page,
1095 bool content_initiated); 1068 bool content_initiated);
1096 1069
1097 #if defined(OS_ANDROID)
1098 RendererMediaPlayerManager* GetMediaPlayerManager();
1099 #endif
1100
1101 bool AreSecureCodecsSupported(); 1070 bool AreSecureCodecsSupported();
1102 1071
1103 #if defined(ENABLE_MOJO_MEDIA)
1104 service_manager::mojom::InterfaceProvider* GetMediaInterfaceProvider();
1105 #endif
1106
1107 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
1108 media::mojom::RemoterFactory* GetRemoterFactory();
1109 #endif
1110
1111 media::CdmFactory* GetCdmFactory();
1112 media::DecoderFactory* GetDecoderFactory();
1113
1114 #if BUILDFLAG(ENABLE_PLUGINS) 1072 #if BUILDFLAG(ENABLE_PLUGINS)
1115 void HandlePepperImeCommit(const base::string16& text); 1073 void HandlePepperImeCommit(const base::string16& text);
1116 #endif // ENABLE_PLUGINS 1074 #endif // ENABLE_PLUGINS
1117 1075
1118 void RegisterMojoInterfaces(); 1076 void RegisterMojoInterfaces();
1119 1077
1120 // Connect to an interface provided by the service registry. 1078 // Connect to an interface provided by the service registry.
1121 template <typename Interface> 1079 template <typename Interface>
1122 void GetInterface(mojo::InterfaceRequest<Interface> request); 1080 void GetInterface(mojo::InterfaceRequest<Interface> request);
1123 1081
1124 void OnHostZoomClientRequest(mojom::HostZoomAssociatedRequest request); 1082 void OnHostZoomClientRequest(mojom::HostZoomAssociatedRequest request);
1125 1083
1126 // Returns the media delegate for WebMediaPlayer usage. If
1127 // |media_player_delegate_| is NULL, one is created.
1128 media::RendererWebMediaPlayerDelegate* GetWebMediaPlayerDelegate();
1129
1130 // Called to get the WebPlugin to handle find requests in the document. 1084 // Called to get the WebPlugin to handle find requests in the document.
1131 // Returns nullptr if there is no such WebPlugin. 1085 // Returns nullptr if there is no such WebPlugin.
1132 blink::WebPlugin* GetWebPluginForFind(); 1086 blink::WebPlugin* GetWebPluginForFind();
1133 1087
1134 // Sends a reply to the current find operation handling if it was a 1088 // Sends a reply to the current find operation handling if it was a
1135 // synchronous find request. 1089 // synchronous find request.
1136 void SendFindReply(int request_id, 1090 void SendFindReply(int request_id,
1137 int match_count, 1091 int match_count,
1138 int ordinal, 1092 int ordinal,
1139 const blink::WebRect& selection_rect, 1093 const blink::WebRect& selection_rect,
1140 bool final_status_update); 1094 bool final_status_update);
1141 1095
1142 void InitializeBlameContext(RenderFrameImpl* parent_frame); 1096 void InitializeBlameContext(RenderFrameImpl* parent_frame);
1143 1097
1144 // service_manager::mojom::InterfaceProvider: 1098 // service_manager::mojom::InterfaceProvider:
1145 void GetInterface(const std::string& interface_name, 1099 void GetInterface(const std::string& interface_name,
1146 mojo::ScopedMessagePipeHandle interface_pipe) override; 1100 mojo::ScopedMessagePipeHandle interface_pipe) override;
1147 1101
1148 // Send |callback| our AndroidOverlay routing token when it arrives. We may 1102 // Send |callback| our AndroidOverlay routing token when it arrives. We may
1149 // call |callback| before returning. 1103 // call |callback| before returning.
1104 // TODO - consider moving this. Right now we're just friending the media
1105 // helper.
1150 void RequestOverlayRoutingToken(media::RoutingTokenCallback callback); 1106 void RequestOverlayRoutingToken(media::RoutingTokenCallback callback);
1151 1107
1152 // Ask the host to send our AndroidOverlay routing token to us. 1108 // Ask the host to send our AndroidOverlay routing token to us.
1153 void RequestOverlayRoutingTokenFromHost(); 1109 void RequestOverlayRoutingTokenFromHost();
1154 1110
1155 // Stores the WebLocalFrame we are associated with. This is null from the 1111 // Stores the WebLocalFrame we are associated with. This is null from the
1156 // constructor until BindToWebFrame is called, and it is null after 1112 // constructor until BindToWebFrame is called, and it is null after
1157 // frameDetached is called until destruction (which is asynchronous in the 1113 // frameDetached is called until destruction (which is asynchronous in the
1158 // case of the main frame, but not subframes). 1114 // case of the main frame, but not subframes).
1159 blink::WebLocalFrame* frame_; 1115 blink::WebLocalFrame* frame_;
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 // of handling a InputMsg_SelectRange IPC. 1221 // of handling a InputMsg_SelectRange IPC.
1266 bool handling_select_range_; 1222 bool handling_select_range_;
1267 1223
1268 // The next group of objects all implement RenderFrameObserver, so are deleted 1224 // The next group of objects all implement RenderFrameObserver, so are deleted
1269 // along with the RenderFrame automatically. This is why we just store weak 1225 // along with the RenderFrame automatically. This is why we just store weak
1270 // references. 1226 // references.
1271 1227
1272 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism. 1228 // Destroyed via the RenderFrameObserver::OnDestruct() mechanism.
1273 UserMediaClientImpl* web_user_media_client_; 1229 UserMediaClientImpl* web_user_media_client_;
1274 1230
1275 // EncryptedMediaClient attached to this frame; lazily initialized. 1231 std::unique_ptr<RenderMediaHelper> media_helper_;
1276 std::unique_ptr<media::WebEncryptedMediaClientImpl>
1277 web_encrypted_media_client_;
1278
1279 // The media permission dispatcher attached to this frame.
1280 std::unique_ptr<MediaPermissionDispatcher> media_permission_dispatcher_;
1281
1282 #if defined(ENABLE_MOJO_MEDIA)
1283 // The media interface provider attached to this frame, lazily initialized.
1284 std::unique_ptr<MediaInterfaceProvider> media_interface_provider_;
1285 #endif
1286
1287 #if defined(OS_ANDROID)
1288 // Manages all media players and sessions in this render frame for
1289 // communicating with the real media player and sessions in the
1290 // browser process. It's okay to use raw pointers since they're both
1291 // RenderFrameObservers.
1292 RendererMediaPlayerManager* media_player_manager_;
1293 #endif
1294
1295 media::SurfaceManager* media_surface_manager_;
1296
1297 #if BUILDFLAG(ENABLE_MEDIA_REMOTING)
1298 // Lazy-bound pointer to the RemoterFactory service in the browser
1299 // process. Always use the GetRemoterFactory() accessor instead of this.
1300 media::mojom::RemoterFactoryPtr remoter_factory_;
1301
1302 // An observer for the remoting sink availability that is used by
1303 // media::RemotingCdmFactory to initialize media::RemotingSourceImpl. Created
1304 // in the constructor of RenderFrameImpl to make sure
1305 // media::RemotingSourceImpl be intialized with correct availability info.
1306 // Own by media::RemotingCdmFactory after it is created.
1307 std::unique_ptr<media::remoting::SinkAvailabilityObserver>
1308 remoting_sink_observer_;
1309 #endif
1310
1311 // The CDM and decoder factory attached to this frame, lazily initialized.
1312 std::unique_ptr<media::CdmFactory> cdm_factory_;
1313 std::unique_ptr<media::DecoderFactory> decoder_factory_;
1314
1315 // Media resource cache, lazily initialized.
1316 linked_ptr<media::UrlIndex> url_index_;
1317 1232
1318 // The devtools agent for this frame; only created for main frame and 1233 // The devtools agent for this frame; only created for main frame and
1319 // local roots. 1234 // local roots.
1320 DevToolsAgent* devtools_agent_; 1235 DevToolsAgent* devtools_agent_;
1321 1236
1322 // The presentation dispatcher implementation attached to this frame, lazily 1237 // The presentation dispatcher implementation attached to this frame, lazily
1323 // initialized. 1238 // initialized.
1324 PresentationDispatcher* presentation_dispatcher_; 1239 PresentationDispatcher* presentation_dispatcher_;
1325 1240
1326 // The PushMessagingClient attached to this frame, lazily initialized. 1241 // The PushMessagingClient attached to this frame, lazily initialized.
(...skipping 22 matching lines...) Expand all
1349 1264
1350 // The current accessibility mode. 1265 // The current accessibility mode.
1351 AccessibilityMode accessibility_mode_; 1266 AccessibilityMode accessibility_mode_;
1352 1267
1353 // Only valid if |accessibility_mode_| has |AccessibilityMode::kWebContents| 1268 // Only valid if |accessibility_mode_| has |AccessibilityMode::kWebContents|
1354 // flag set. 1269 // flag set.
1355 RenderAccessibilityImpl* render_accessibility_; 1270 RenderAccessibilityImpl* render_accessibility_;
1356 1271
1357 std::unique_ptr<RelatedAppsFetcher> related_apps_fetcher_; 1272 std::unique_ptr<RelatedAppsFetcher> related_apps_fetcher_;
1358 1273
1359 // Manages play, pause notifications for WebMediaPlayer implementations; its
1360 // lifetime is tied to the RenderFrame via the RenderFrameObserver interface.
1361 media::RendererWebMediaPlayerDelegate* media_player_delegate_;
1362
1363 // The PreviewsState of this RenderFrame that indicates which Previews can 1274 // The PreviewsState of this RenderFrame that indicates which Previews can
1364 // be used. The PreviewsState is a bitmask of potentially several Previews 1275 // be used. The PreviewsState is a bitmask of potentially several Previews
1365 // optimizations. 1276 // optimizations.
1366 // TODO(sclittle): Consider moving this into Blink to be owned and managed by 1277 // TODO(sclittle): Consider moving this into Blink to be owned and managed by
1367 // LocalFrame or another class around there. 1278 // LocalFrame or another class around there.
1368 PreviewsState previews_state_; 1279 PreviewsState previews_state_;
1369 1280
1370 // Effective connection type when the document of this frame was fetched. 1281 // Effective connection type when the document of this frame was fetched.
1371 // TODO(sclittle): Consider moving this into Blink to be owned and managed by 1282 // TODO(sclittle): Consider moving this into Blink to be owned and managed by
1372 // LocalFrame or another class around there. 1283 // LocalFrame or another class around there.
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 std::vector<media::RoutingTokenCallback> pending_routing_token_callbacks_; 1385 std::vector<media::RoutingTokenCallback> pending_routing_token_callbacks_;
1475 1386
1476 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1387 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1477 1388
1478 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1389 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1479 }; 1390 };
1480 1391
1481 } // namespace content 1392 } // namespace content
1482 1393
1483 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1394 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698