Chromium Code Reviews| 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 "mojo/application/public/interfaces/service_provider.mojom.h" | 30 #include "mojo/application/public/interfaces/service_provider.mojom.h" |
| 30 #include "mojo/application/public/interfaces/shell.mojom.h" | 31 #include "mojo/application/public/interfaces/shell.mojom.h" |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 212 | 213 |
| 213 DevToolsAgent* devtools_agent() { return devtools_agent_; } | 214 DevToolsAgent* devtools_agent() { return devtools_agent_; } |
| 214 | 215 |
| 215 // This is called right after creation with the WebLocalFrame for this | 216 // This is called right after creation with the WebLocalFrame for this |
| 216 // RenderFrame. It must be called before Initialize. | 217 // RenderFrame. It must be called before Initialize. |
| 217 void SetWebFrame(blink::WebLocalFrame* web_frame); | 218 void SetWebFrame(blink::WebLocalFrame* web_frame); |
| 218 | 219 |
| 219 // This method must be called after the frame has been added to the frame | 220 // This method must be called after the frame has been added to the frame |
| 220 // tree. It creates all objects that depend on the frame being at its proper | 221 // tree. It creates all objects that depend on the frame being at its proper |
| 221 // spot. | 222 // spot. |
| 222 void Initialize(); | 223 void Initialize(LoFiState lofi_state = LOFI_DEFAULT); |
|
davidben
2015/08/27 18:53:50
Style: no default arguments.
https://google-styleg
megjablon
2015/08/27 23:11:02
Done.
| |
| 223 | 224 |
| 224 // Notifications from RenderWidget. | 225 // Notifications from RenderWidget. |
| 225 void WasHidden(); | 226 void WasHidden(); |
| 226 void WasShown(); | 227 void WasShown(); |
| 227 void WidgetWillClose(); | 228 void WidgetWillClose(); |
| 228 | 229 |
| 229 // Start/Stop loading notifications. | 230 // Start/Stop loading notifications. |
| 230 // TODO(nasko): Those are page-level methods at this time and come from | 231 // TODO(nasko): Those are page-level methods at this time and come from |
| 231 // WebViewClient. We should move them to be WebFrameClient calls and put | 232 // WebViewClient. We should move them to be WebFrameClient calls and put |
| 232 // logic in the browser side to balance starts/stops. | 233 // logic in the browser side to balance starts/stops. |
| (...skipping 787 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1020 RendererAccessibility* renderer_accessibility_; | 1021 RendererAccessibility* renderer_accessibility_; |
| 1021 | 1022 |
| 1022 scoped_ptr<PermissionDispatcher> permission_client_; | 1023 scoped_ptr<PermissionDispatcher> permission_client_; |
| 1023 | 1024 |
| 1024 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; | 1025 scoped_ptr<blink::WebAppBannerClient> app_banner_client_; |
| 1025 | 1026 |
| 1026 scoped_ptr<blink::WebBluetooth> bluetooth_; | 1027 scoped_ptr<blink::WebBluetooth> bluetooth_; |
| 1027 | 1028 |
| 1028 scoped_ptr<blink::WebUSBClient> usb_client_; | 1029 scoped_ptr<blink::WebUSBClient> usb_client_; |
| 1029 | 1030 |
| 1031 // Whether or not to request a LoFi version of the resource or let the browser | |
| 1032 // decide. | |
|
davidben
2015/08/27 18:53:50
This is the copy of the field on the RenderFrameIm
bengr
2015/08/27 21:14:07
Agreed this can/should be a bit.
megjablon
2015/08/27 23:11:02
I don't think this can be a bit. We need this for
davidben
2015/08/31 23:43:24
That won't work anyway. Navigations are not synchr
megjablon
2015/09/02 21:25:42
So you're saying we should use CreateURLRequestfor
davidben
2015/09/04 14:41:22
I'm not super familiar with the distinctions betwe
megjablon
2015/09/09 20:54:16
@nasko can you take a look?
| |
| 1033 LoFiState lofi_state_; | |
| 1034 | |
| 1030 #if defined(ENABLE_WEBVR) | 1035 #if defined(ENABLE_WEBVR) |
| 1031 // The VR dispatcher attached to the frame, lazily initialized. | 1036 // The VR dispatcher attached to the frame, lazily initialized. |
| 1032 scoped_ptr<VRDispatcher> vr_dispatcher_; | 1037 scoped_ptr<VRDispatcher> vr_dispatcher_; |
| 1033 #endif | 1038 #endif |
| 1034 | 1039 |
| 1035 #if defined(OS_MACOSX) || defined(OS_ANDROID) | 1040 #if defined(OS_MACOSX) || defined(OS_ANDROID) |
| 1036 // The external popup for the currently showing select popup. | 1041 // The external popup for the currently showing select popup. |
| 1037 scoped_ptr<ExternalPopupMenu> external_popup_menu_; | 1042 scoped_ptr<ExternalPopupMenu> external_popup_menu_; |
| 1038 #endif | 1043 #endif |
| 1039 | 1044 |
| 1040 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1045 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
| 1041 | 1046 |
| 1042 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1047 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
| 1043 }; | 1048 }; |
| 1044 | 1049 |
| 1045 } // namespace content | 1050 } // namespace content |
| 1046 | 1051 |
| 1047 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1052 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
| OLD | NEW |