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_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 #include <stdint.h> | 9 #include <stdint.h> |
10 | 10 |
11 #include <map> | 11 #include <map> |
12 #include <set> | 12 #include <set> |
13 #include <string> | 13 #include <string> |
14 #include <vector> | 14 #include <vector> |
15 | 15 |
16 #include "base/callback.h" | 16 #include "base/callback.h" |
17 #include "base/compiler_specific.h" | 17 #include "base/compiler_specific.h" |
18 #include "base/gtest_prod_util.h" | 18 #include "base/gtest_prod_util.h" |
19 #include "base/macros.h" | 19 #include "base/macros.h" |
20 #include "base/memory/weak_ptr.h" | 20 #include "base/memory/weak_ptr.h" |
21 #include "base/strings/string16.h" | 21 #include "base/strings/string16.h" |
22 #include "base/time/time.h" | 22 #include "base/time/time.h" |
23 #include "build/build_config.h" | 23 #include "build/build_config.h" |
24 #include "content/browser/accessibility/browser_accessibility_manager.h" | 24 #include "content/browser/accessibility/browser_accessibility_manager.h" |
25 #include "content/browser/bad_message.h" | 25 #include "content/browser/bad_message.h" |
26 #include "content/browser/loader/global_routing_id.h" | 26 #include "content/browser/loader/global_routing_id.h" |
27 #include "content/browser/site_instance_impl.h" | 27 #include "content/browser/site_instance_impl.h" |
28 #include "content/browser/webui/web_ui_impl.h" | 28 #include "content/browser/webui/web_ui_impl.h" |
29 #include "content/common/accessibility_mode_enums.h" | 29 #include "content/common/accessibility_mode_enums.h" |
| 30 #include "content/common/associated_interface_registry_impl.h" |
30 #include "content/common/ax_content_node_data.h" | 31 #include "content/common/ax_content_node_data.h" |
31 #include "content/common/content_export.h" | 32 #include "content/common/content_export.h" |
32 #include "content/common/frame.mojom.h" | 33 #include "content/common/frame.mojom.h" |
33 #include "content/common/frame_message_enums.h" | 34 #include "content/common/frame_message_enums.h" |
34 #include "content/common/frame_replication_state.h" | 35 #include "content/common/frame_replication_state.h" |
35 #include "content/common/image_downloader/image_downloader.mojom.h" | 36 #include "content/common/image_downloader/image_downloader.mojom.h" |
36 #include "content/common/navigation_params.h" | 37 #include "content/common/navigation_params.h" |
37 #include "content/public/browser/render_frame_host.h" | 38 #include "content/public/browser/render_frame_host.h" |
| 39 #include "content/public/common/associated_interfaces.mojom.h" |
38 #include "content/public/common/javascript_message_type.h" | 40 #include "content/public/common/javascript_message_type.h" |
39 #include "media/mojo/interfaces/service_factory.mojom.h" | 41 #include "media/mojo/interfaces/service_factory.mojom.h" |
40 #include "net/http/http_response_headers.h" | 42 #include "net/http/http_response_headers.h" |
41 #include "services/shell/public/cpp/interface_factory.h" | 43 #include "services/shell/public/cpp/interface_factory.h" |
42 #include "services/shell/public/cpp/interface_registry.h" | 44 #include "services/shell/public/cpp/interface_registry.h" |
43 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" | 45 #include "third_party/WebKit/public/platform/WebInsecureRequestPolicy.h" |
44 #include "third_party/WebKit/public/web/WebTextDirection.h" | 46 #include "third_party/WebKit/public/web/WebTextDirection.h" |
45 #include "third_party/WebKit/public/web/WebTreeScopeType.h" | 47 #include "third_party/WebKit/public/web/WebTreeScopeType.h" |
46 #include "ui/accessibility/ax_node_data.h" | 48 #include "ui/accessibility/ax_node_data.h" |
47 #include "ui/base/page_transition_types.h" | 49 #include "ui/base/page_transition_types.h" |
(...skipping 19 matching lines...) Expand all Loading... |
67 } | 69 } |
68 | 70 |
69 namespace blink { | 71 namespace blink { |
70 namespace mojom { | 72 namespace mojom { |
71 class WebBluetoothService; | 73 class WebBluetoothService; |
72 } | 74 } |
73 } | 75 } |
74 | 76 |
75 namespace content { | 77 namespace content { |
76 | 78 |
| 79 class AssociatedInterfaceProviderImpl; |
77 class CrossProcessFrameConnector; | 80 class CrossProcessFrameConnector; |
78 class CrossSiteTransferringRequest; | 81 class CrossSiteTransferringRequest; |
79 class FrameTree; | 82 class FrameTree; |
80 class FrameTreeNode; | 83 class FrameTreeNode; |
81 class NavigationHandleImpl; | 84 class NavigationHandleImpl; |
82 class PermissionServiceContext; | 85 class PermissionServiceContext; |
83 class RenderFrameHostDelegate; | 86 class RenderFrameHostDelegate; |
84 class RenderFrameProxyHost; | 87 class RenderFrameProxyHost; |
85 class RenderProcessHost; | 88 class RenderProcessHost; |
86 class RenderViewHostImpl; | 89 class RenderViewHostImpl; |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 const JavaScriptResultCallback& callback) override; | 155 const JavaScriptResultCallback& callback) override; |
153 void ExecuteJavaScriptWithUserGestureForTests( | 156 void ExecuteJavaScriptWithUserGestureForTests( |
154 const base::string16& javascript) override; | 157 const base::string16& javascript) override; |
155 void ActivateFindInPageResultForAccessibility(int request_id) override; | 158 void ActivateFindInPageResultForAccessibility(int request_id) override; |
156 void InsertVisualStateCallback(const VisualStateCallback& callback) override; | 159 void InsertVisualStateCallback(const VisualStateCallback& callback) override; |
157 void CopyImageAt(int x, int y) override; | 160 void CopyImageAt(int x, int y) override; |
158 void SaveImageAt(int x, int y) override; | 161 void SaveImageAt(int x, int y) override; |
159 RenderViewHost* GetRenderViewHost() override; | 162 RenderViewHost* GetRenderViewHost() override; |
160 shell::InterfaceRegistry* GetInterfaceRegistry() override; | 163 shell::InterfaceRegistry* GetInterfaceRegistry() override; |
161 shell::InterfaceProvider* GetRemoteInterfaces() override; | 164 shell::InterfaceProvider* GetRemoteInterfaces() override; |
| 165 AssociatedInterfaceRegistry* GetAssociatedInterfaceRegistry() override; |
| 166 AssociatedInterfaceProvider* GetRemoteAssociatedInterfaces() override; |
162 blink::WebPageVisibilityState GetVisibilityState() override; | 167 blink::WebPageVisibilityState GetVisibilityState() override; |
163 bool IsRenderFrameLive() override; | 168 bool IsRenderFrameLive() override; |
164 int GetProxyCount() override; | 169 int GetProxyCount() override; |
165 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, | 170 void FilesSelectedInChooser(const std::vector<FileChooserFileInfo>& files, |
166 FileChooserParams::Mode permissions) override; | 171 FileChooserParams::Mode permissions) override; |
167 void RequestTextSurroundingSelection( | 172 void RequestTextSurroundingSelection( |
168 const TextSurroundingSelectionCallback& callback, | 173 const TextSurroundingSelectionCallback& callback, |
169 int max_length) override; | 174 int max_length) override; |
170 | 175 |
171 // mojom::FrameHost | 176 // mojom::FrameHost |
172 void GetInterfaceProvider( | 177 void GetInterfaceProvider( |
173 shell::mojom::InterfaceProviderRequest interfaces) override; | 178 shell::mojom::InterfaceProviderRequest interfaces) override; |
174 | 179 |
175 // IPC::Sender | 180 // IPC::Sender |
176 bool Send(IPC::Message* msg) override; | 181 bool Send(IPC::Message* msg) override; |
177 | 182 |
178 // IPC::Listener | 183 // IPC::Listener |
179 bool OnMessageReceived(const IPC::Message& msg) override; | 184 bool OnMessageReceived(const IPC::Message& msg) override; |
| 185 void OnAssociatedInterfaceRequest( |
| 186 const std::string& interface_name, |
| 187 mojo::ScopedInterfaceEndpointHandle handle) override; |
180 | 188 |
181 // BrowserAccessibilityDelegate | 189 // BrowserAccessibilityDelegate |
182 void AccessibilitySetFocus(int acc_obj_id) override; | 190 void AccessibilitySetFocus(int acc_obj_id) override; |
183 void AccessibilityDoDefaultAction(int acc_obj_id) override; | 191 void AccessibilityDoDefaultAction(int acc_obj_id) override; |
184 void AccessibilityShowContextMenu(int acc_obj_id) override; | 192 void AccessibilityShowContextMenu(int acc_obj_id) override; |
185 void AccessibilityScrollToMakeVisible(int acc_obj_id, | 193 void AccessibilityScrollToMakeVisible(int acc_obj_id, |
186 const gfx::Rect& subfocus) override; | 194 const gfx::Rect& subfocus) override; |
187 void AccessibilityScrollToPoint(int acc_obj_id, | 195 void AccessibilityScrollToPoint(int acc_obj_id, |
188 const gfx::Point& point) override; | 196 const gfx::Point& point) override; |
189 void AccessibilitySetScrollOffset(int acc_obj_id, | 197 void AccessibilitySetScrollOffset(int acc_obj_id, |
(...skipping 858 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1048 | 1056 |
1049 mojo::Binding<mojom::FrameHost> frame_host_binding_; | 1057 mojo::Binding<mojom::FrameHost> frame_host_binding_; |
1050 mojom::FramePtr frame_; | 1058 mojom::FramePtr frame_; |
1051 | 1059 |
1052 // Callback for responding when | 1060 // Callback for responding when |
1053 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. | 1061 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. |
1054 TextSurroundingSelectionCallback text_surrounding_selection_callback_; | 1062 TextSurroundingSelectionCallback text_surrounding_selection_callback_; |
1055 | 1063 |
1056 std::vector<std::unique_ptr<shell::InterfaceRegistry>> media_registries_; | 1064 std::vector<std::unique_ptr<shell::InterfaceRegistry>> media_registries_; |
1057 | 1065 |
| 1066 AssociatedInterfaceRegistryImpl associated_interface_registry_; |
| 1067 std::unique_ptr<AssociatedInterfaceProviderImpl> |
| 1068 remote_associated_interfaces_; |
| 1069 |
1058 // NOTE: This must be the last member. | 1070 // NOTE: This must be the last member. |
1059 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1071 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1060 | 1072 |
1061 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1073 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1062 }; | 1074 }; |
1063 | 1075 |
1064 } // namespace content | 1076 } // namespace content |
1065 | 1077 |
1066 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1078 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |