OLD | NEW |
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 "media/blink/webmediaplayer_params.h" | 30 #include "media/blink/webmediaplayer_params.h" |
30 #include "mojo/application/public/interfaces/service_provider.mojom.h" | 31 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 | 210 |
210 DevToolsAgent* devtools_agent() { return devtools_agent_; } | 211 DevToolsAgent* devtools_agent() { return devtools_agent_; } |
211 | 212 |
212 // This is called right after creation with the WebLocalFrame for this | 213 // This is called right after creation with the WebLocalFrame for this |
213 // RenderFrame. It must be called before Initialize. | 214 // RenderFrame. It must be called before Initialize. |
214 void SetWebFrame(blink::WebLocalFrame* web_frame); | 215 void SetWebFrame(blink::WebLocalFrame* web_frame); |
215 | 216 |
216 // This method must be called after the frame has been added to the frame | 217 // This method must be called after the frame has been added to the frame |
217 // tree. It creates all objects that depend on the frame being at its proper | 218 // tree. It creates all objects that depend on the frame being at its proper |
218 // spot. | 219 // spot. |
219 void Initialize(); | 220 void Initialize(LoFiState lofi_state); |
220 | 221 |
221 // Notifications from RenderWidget. | 222 // Notifications from RenderWidget. |
222 void WasHidden(); | 223 void WasHidden(); |
223 void WasShown(); | 224 void WasShown(); |
224 void WidgetWillClose(); | 225 void WidgetWillClose(); |
225 | 226 |
226 // Start/Stop loading notifications. | 227 // Start/Stop loading notifications. |
227 // TODO(nasko): Those are page-level methods at this time and come from | 228 // TODO(nasko): Those are page-level methods at this time and come from |
228 // WebViewClient. We should move them to be WebFrameClient calls and put | 229 // WebViewClient. We should move them to be WebFrameClient calls and put |
229 // logic in the browser side to balance starts/stops. | 230 // logic in the browser side to balance starts/stops. |
(...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1018 RendererAccessibility* renderer_accessibility_; | 1019 RendererAccessibility* renderer_accessibility_; |
1019 | 1020 |
1020 scoped_ptr<PermissionDispatcher> permission_client_; | 1021 scoped_ptr<PermissionDispatcher> permission_client_; |
1021 | 1022 |
1022 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; | 1023 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; |
1023 | 1024 |
1024 scoped_ptr<blink::WebBluetooth> bluetooth_; | 1025 scoped_ptr<blink::WebBluetooth> bluetooth_; |
1025 | 1026 |
1026 scoped_ptr<blink::WebUSBClient> usb_client_; | 1027 scoped_ptr<blink::WebUSBClient> usb_client_; |
1027 | 1028 |
| 1029 // Whether or not to use Lo-Fi for this frame or let the browser decide. |
| 1030 LoFiState lofi_state_; |
| 1031 |
1028 #if defined(ENABLE_WEBVR) | 1032 #if defined(ENABLE_WEBVR) |
1029 // The VR dispatcher attached to the frame, lazily initialized. | 1033 // The VR dispatcher attached to the frame, lazily initialized. |
1030 scoped_ptr<VRDispatcher> vr_dispatcher_; | 1034 scoped_ptr<VRDispatcher> vr_dispatcher_; |
1031 #endif | 1035 #endif |
1032 | 1036 |
1033 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1037 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
1034 // The external popup for the currently showing select popup. | 1038 // The external popup for the currently showing select popup. |
1035 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1039 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
1036 #endif | 1040 #endif |
1037 | 1041 |
1038 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1042 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1039 | 1043 |
1040 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1044 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1041 }; | 1045 }; |
1042 | 1046 |
1043 } // namespace content | 1047 } // namespace content |
1044 | 1048 |
1045 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1049 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |