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

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

Issue 1310743003: Consistently use LoFi for an entire page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: test fixes Created 5 years, 3 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 <vector> 8 #include <vector>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/gtest_prod_util.h" 12 #include "base/gtest_prod_util.h"
13 #include "base/id_map.h" 13 #include "base/id_map.h"
14 #include "base/memory/scoped_ptr.h" 14 #include "base/memory/scoped_ptr.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "base/process/process_handle.h" 17 #include "base/process/process_handle.h"
18 #include "content/common/accessibility_mode_enums.h" 18 #include "content/common/accessibility_mode_enums.h"
19 #include "content/common/frame_message_enums.h" 19 #include "content/common/frame_message_enums.h"
20 #include "content/common/mojo/service_registry_impl.h" 20 #include "content/common/mojo/service_registry_impl.h"
21 #include "content/common/navigation_params.h"
21 #include "content/public/common/console_message_level.h" 22 #include "content/public/common/console_message_level.h"
22 #include "content/public/common/javascript_message_type.h" 23 #include "content/public/common/javascript_message_type.h"
23 #include "content/public/common/referrer.h" 24 #include "content/public/common/referrer.h"
24 #include "content/public/renderer/render_frame.h" 25 #include "content/public/renderer/render_frame.h"
25 #include "content/renderer/render_frame_proxy.h" 26 #include "content/renderer/render_frame_proxy.h"
26 #include "content/renderer/renderer_webcookiejar_impl.h" 27 #include "content/renderer/renderer_webcookiejar_impl.h"
27 #include "ipc/ipc_message.h" 28 #include "ipc/ipc_message.h"
28 #include "media/blink/webmediaplayer_delegate.h" 29 #include "media/blink/webmediaplayer_delegate.h"
29 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h" 30 #include "third_party/WebKit/public/platform/modules/app_banner/WebAppBannerClie nt.h"
30 #include "third_party/WebKit/public/web/WebAXObject.h" 31 #include "third_party/WebKit/public/web/WebAXObject.h"
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 202
202 DevToolsAgent* devtools_agent() { return devtools_agent_; } 203 DevToolsAgent* devtools_agent() { return devtools_agent_; }
203 204
204 // This is called right after creation with the WebLocalFrame for this 205 // This is called right after creation with the WebLocalFrame for this
205 // RenderFrame. It must be called before Initialize. 206 // RenderFrame. It must be called before Initialize.
206 void SetWebFrame(blink::WebLocalFrame* web_frame); 207 void SetWebFrame(blink::WebLocalFrame* web_frame);
207 208
208 // This method must be called after the frame has been added to the frame 209 // This method must be called after the frame has been added to the frame
209 // tree. It creates all objects that depend on the frame being at its proper 210 // tree. It creates all objects that depend on the frame being at its proper
210 // spot. 211 // spot.
211 void Initialize(); 212 void Initialize(LoFiState lofi_state = LOFI_DEFAULT);
212 213
213 // Notifications from RenderWidget. 214 // Notifications from RenderWidget.
214 void WasHidden(); 215 void WasHidden();
215 void WasShown(); 216 void WasShown();
216 void WidgetWillClose(); 217 void WidgetWillClose();
217 218
218 // Start/Stop loading notifications. 219 // Start/Stop loading notifications.
219 // TODO(nasko): Those are page-level methods at this time and come from 220 // TODO(nasko): Those are page-level methods at this time and come from
220 // WebViewClient. We should move them to be WebFrameClient calls and put 221 // WebViewClient. We should move them to be WebFrameClient calls and put
221 // logic in the browser side to balance starts/stops. 222 // logic in the browser side to balance starts/stops.
(...skipping 777 matching lines...) Expand 10 before | Expand all | Expand 10 after
999 // Only valid if |accessibility_mode_| is anything other than 1000 // Only valid if |accessibility_mode_| is anything other than
1000 // AccessibilityModeOff. 1001 // AccessibilityModeOff.
1001 RendererAccessibility* renderer_accessibility_; 1002 RendererAccessibility* renderer_accessibility_;
1002 1003
1003 scoped_ptr<PermissionDispatcher> permission_client_; 1004 scoped_ptr<PermissionDispatcher> permission_client_;
1004 1005
1005 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; 1006 scoped_ptr<blink::WebAppBannerClient> app_banner_client_;
1006 1007
1007 scoped_ptr<blink::WebBluetooth> bluetooth_; 1008 scoped_ptr<blink::WebBluetooth> bluetooth_;
1008 1009
1010 // Whether or not the LoFi header should be added to the request or if the
1011 // decision should be left up to the network-quality-based triggering logic.
bengr 2015/08/25 00:00:02 I wouldn't get into how the browser process decide
megjablon 2015/08/25 20:29:47 Done.
1012 LoFiState lofi_state_;
1013
1009 #if defined(ENABLE_WEBVR) 1014 #if defined(ENABLE_WEBVR)
1010 // The VR dispatcher attached to the frame, lazily initialized. 1015 // The VR dispatcher attached to the frame, lazily initialized.
1011 scoped_ptr<VRDispatcher> vr_dispatcher_; 1016 scoped_ptr<VRDispatcher> vr_dispatcher_;
1012 #endif 1017 #endif
1013 1018
1014 #if defined(OS_MACOSX) || defined(OS_ANDROID) 1019 #if defined(OS_MACOSX) || defined(OS_ANDROID)
1015 // The external popup for the currently showing select popup. 1020 // The external popup for the currently showing select popup.
1016 scoped_ptr<ExternalPopupMenu> external_popup_menu_; 1021 scoped_ptr<ExternalPopupMenu> external_popup_menu_;
1017 #endif 1022 #endif
1018 1023
1019 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; 1024 base::WeakPtrFactory<RenderFrameImpl> weak_factory_;
1020 1025
1021 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); 1026 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl);
1022 }; 1027 };
1023 1028
1024 } // namespace content 1029 } // namespace content
1025 1030
1026 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ 1031 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698