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 <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <memory> | 11 #include <memory> |
12 #include <string> | 12 #include <string> |
13 #include <vector> | 13 #include <vector> |
14 | 14 |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/id_map.h" | 17 #include "base/id_map.h" |
18 #include "base/macros.h" | 18 #include "base/macros.h" |
19 #include "base/memory/linked_ptr.h" | 19 #include "base/memory/linked_ptr.h" |
20 #include "base/memory/ref_counted.h" | 20 #include "base/memory/ref_counted.h" |
21 #include "base/memory/weak_ptr.h" | 21 #include "base/memory/weak_ptr.h" |
22 #include "base/observer_list.h" | 22 #include "base/observer_list.h" |
23 #include "base/process/process_handle.h" | 23 #include "base/process/process_handle.h" |
24 #include "build/build_config.h" | 24 #include "build/build_config.h" |
25 #include "content/common/accessibility_mode_enums.h" | 25 #include "content/common/accessibility_mode_enums.h" |
| 26 #include "content/common/associated_interface_registry_impl.h" |
26 #include "content/common/frame.mojom.h" | 27 #include "content/common/frame.mojom.h" |
27 #include "content/common/frame_message_enums.h" | 28 #include "content/common/frame_message_enums.h" |
28 #include "content/public/common/console_message_level.h" | 29 #include "content/public/common/console_message_level.h" |
29 #include "content/public/common/javascript_message_type.h" | 30 #include "content/public/common/javascript_message_type.h" |
30 #include "content/public/common/referrer.h" | 31 #include "content/public/common/referrer.h" |
31 #include "content/public/common/stop_find_action.h" | 32 #include "content/public/common/stop_find_action.h" |
32 #include "content/public/renderer/render_frame.h" | 33 #include "content/public/renderer/render_frame.h" |
33 #include "content/renderer/frame_blame_context.h" | 34 #include "content/renderer/frame_blame_context.h" |
34 #include "content/renderer/mojo/blink_interface_provider_impl.h" | 35 #include "content/renderer/mojo/blink_interface_provider_impl.h" |
35 #include "content/renderer/renderer_webcookiejar_impl.h" | 36 #include "content/renderer/renderer_webcookiejar_impl.h" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 class InterfaceRegistry; | 114 class InterfaceRegistry; |
114 class InterfaceProvider; | 115 class InterfaceProvider; |
115 } | 116 } |
116 | 117 |
117 namespace url { | 118 namespace url { |
118 class Origin; | 119 class Origin; |
119 } | 120 } |
120 | 121 |
121 namespace content { | 122 namespace content { |
122 | 123 |
| 124 class AssociatedInterfaceProviderImpl; |
123 class ChildFrameCompositingHelper; | 125 class ChildFrameCompositingHelper; |
124 class CompositorDependencies; | 126 class CompositorDependencies; |
125 class DevToolsAgent; | 127 class DevToolsAgent; |
126 class DocumentState; | 128 class DocumentState; |
127 class ExternalPopupMenu; | 129 class ExternalPopupMenu; |
128 class HistoryEntry; | 130 class HistoryEntry; |
129 class ManifestManager; | 131 class ManifestManager; |
130 class MediaInterfaceProvider; | 132 class MediaInterfaceProvider; |
131 class MediaStreamDispatcher; | 133 class MediaStreamDispatcher; |
132 class MediaStreamRendererFactory; | 134 class MediaStreamRendererFactory; |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 const WebPluginInfo& info, | 405 const WebPluginInfo& info, |
404 const blink::WebPluginParams& params, | 406 const blink::WebPluginParams& params, |
405 std::unique_ptr<PluginInstanceThrottler> throttler) override; | 407 std::unique_ptr<PluginInstanceThrottler> throttler) override; |
406 void LoadURLExternally(const blink::WebURLRequest& request, | 408 void LoadURLExternally(const blink::WebURLRequest& request, |
407 blink::WebNavigationPolicy policy) override; | 409 blink::WebNavigationPolicy policy) override; |
408 void ExecuteJavaScript(const base::string16& javascript) override; | 410 void ExecuteJavaScript(const base::string16& javascript) override; |
409 bool IsMainFrame() override; | 411 bool IsMainFrame() override; |
410 bool IsHidden() override; | 412 bool IsHidden() override; |
411 shell::InterfaceRegistry* GetInterfaceRegistry() override; | 413 shell::InterfaceRegistry* GetInterfaceRegistry() override; |
412 shell::InterfaceProvider* GetRemoteInterfaces() override; | 414 shell::InterfaceProvider* GetRemoteInterfaces() override; |
| 415 AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry() override; |
| 416 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override; |
413 #if defined(ENABLE_PLUGINS) | 417 #if defined(ENABLE_PLUGINS) |
414 void RegisterPeripheralPlugin( | 418 void RegisterPeripheralPlugin( |
415 const url::Origin& content_origin, | 419 const url::Origin& content_origin, |
416 const base::Closure& unthrottle_callback) override; | 420 const base::Closure& unthrottle_callback) override; |
417 RenderFrame::PeripheralContentStatus GetPeripheralContentStatus( | 421 RenderFrame::PeripheralContentStatus GetPeripheralContentStatus( |
418 const url::Origin& main_frame_origin, | 422 const url::Origin& main_frame_origin, |
419 const url::Origin& content_origin, | 423 const url::Origin& content_origin, |
420 const gfx::Size& unobscured_size, | 424 const gfx::Size& unobscured_size, |
421 RecordPeripheralDecision record_decision) const override; | 425 RecordPeripheralDecision record_decision) const override; |
422 void WhitelistContentOrigin(const url::Origin& content_origin) override; | 426 void WhitelistContentOrigin(const url::Origin& content_origin) override; |
(...skipping 849 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1272 // the RenderFrameImpl to NULL it out when it destructs. | 1276 // the RenderFrameImpl to NULL it out when it destructs. |
1273 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; | 1277 PepperPluginInstanceImpl* pepper_last_mouse_event_target_; |
1274 #endif | 1278 #endif |
1275 | 1279 |
1276 mojo::Binding<mojom::Frame> frame_binding_; | 1280 mojo::Binding<mojom::Frame> frame_binding_; |
1277 mojom::FrameHostPtr frame_host_; | 1281 mojom::FrameHostPtr frame_host_; |
1278 | 1282 |
1279 // Indicates whether |didAccessInitialDocument| was called. | 1283 // Indicates whether |didAccessInitialDocument| was called. |
1280 bool has_accessed_initial_document_; | 1284 bool has_accessed_initial_document_; |
1281 | 1285 |
| 1286 AssociatedInterfaceRegistryImpl associated_interfaces_; |
| 1287 std::unique_ptr<AssociatedInterfaceProviderImpl> |
| 1288 remote_associated_interfaces_; |
| 1289 |
1282 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; | 1290 base::WeakPtrFactory<RenderFrameImpl> weak_factory_; |
1283 | 1291 |
1284 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); | 1292 DISALLOW_COPY_AND_ASSIGN(RenderFrameImpl); |
1285 }; | 1293 }; |
1286 | 1294 |
1287 } // namespace content | 1295 } // namespace content |
1288 | 1296 |
1289 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ | 1297 #endif // CONTENT_RENDERER_RENDER_FRAME_IMPL_H_ |
OLD | NEW |