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

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

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

Powered by Google App Engine
This is Rietveld 408576698