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 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
71 namespace mojom { | 71 namespace mojom { |
72 class WebBluetoothService; | 72 class WebBluetoothService; |
73 } | 73 } |
74 } | 74 } |
75 | 75 |
76 namespace gfx { | 76 namespace gfx { |
77 class Range; | 77 class Range; |
78 } | 78 } |
79 | 79 |
80 namespace content { | 80 namespace content { |
81 class AppWebMessagePortMessageFilter; | |
82 class AssociatedInterfaceProviderImpl; | 81 class AssociatedInterfaceProviderImpl; |
83 class CrossProcessFrameConnector; | 82 class CrossProcessFrameConnector; |
84 class FeaturePolicy; | 83 class FeaturePolicy; |
85 class FrameTree; | 84 class FrameTree; |
86 class FrameTreeNode; | 85 class FrameTreeNode; |
87 class MediaInterfaceProxy; | 86 class MediaInterfaceProxy; |
88 class NavigationHandleImpl; | 87 class NavigationHandleImpl; |
89 class PermissionServiceContext; | 88 class PermissionServiceContext; |
90 class RenderFrameHostDelegate; | 89 class RenderFrameHostDelegate; |
91 class RenderFrameProxyHost; | 90 class RenderFrameProxyHost; |
(...skipping 214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
306 // return a nullptr, whereas GetView() potentially will (for instance, | 305 // return a nullptr, whereas GetView() potentially will (for instance, |
307 // after a renderer crash). | 306 // after a renderer crash). |
308 // | 307 // |
309 // This method crashes if this RenderFrameHostImpl does not own a | 308 // This method crashes if this RenderFrameHostImpl does not own a |
310 // a RenderWidgetHost and nor does any of its ancestors. That would | 309 // a RenderWidgetHost and nor does any of its ancestors. That would |
311 // typically mean that the frame has been detached from the frame tree. | 310 // typically mean that the frame has been detached from the frame tree. |
312 RenderWidgetHostImpl* GetRenderWidgetHost(); | 311 RenderWidgetHostImpl* GetRenderWidgetHost(); |
313 | 312 |
314 GlobalFrameRoutingId GetGlobalFrameRoutingId(); | 313 GlobalFrameRoutingId GetGlobalFrameRoutingId(); |
315 | 314 |
316 #if defined(OS_ANDROID) | |
317 scoped_refptr<AppWebMessagePortMessageFilter> | |
318 GetAppWebMessagePortMessageFilter(int routing_id); | |
319 #endif | |
320 | |
321 // This function is called when this is a swapped out RenderFrameHost that | 315 // This function is called when this is a swapped out RenderFrameHost that |
322 // lives in the same process as the parent frame. The | 316 // lives in the same process as the parent frame. The |
323 // |cross_process_frame_connector| allows the non-swapped-out | 317 // |cross_process_frame_connector| allows the non-swapped-out |
324 // RenderFrameHost for a frame to communicate with the parent process | 318 // RenderFrameHost for a frame to communicate with the parent process |
325 // so that it may composite drawing data. | 319 // so that it may composite drawing data. |
326 // | 320 // |
327 // Ownership is not transfered. | 321 // Ownership is not transfered. |
328 void set_cross_process_frame_connector( | 322 void set_cross_process_frame_connector( |
329 CrossProcessFrameConnector* cross_process_frame_connector) { | 323 CrossProcessFrameConnector* cross_process_frame_connector) { |
330 cross_process_frame_connector_ = cross_process_frame_connector; | 324 cross_process_frame_connector_ = cross_process_frame_connector; |
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1038 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; | 1032 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; |
1039 | 1033 |
1040 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; | 1034 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; |
1041 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; | 1035 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; |
1042 | 1036 |
1043 service_manager::ServiceInfo browser_info_; | 1037 service_manager::ServiceInfo browser_info_; |
1044 service_manager::ServiceInfo renderer_info_; | 1038 service_manager::ServiceInfo renderer_info_; |
1045 | 1039 |
1046 int on_connect_handler_id_ = 0; | 1040 int on_connect_handler_id_ = 0; |
1047 | 1041 |
1048 #if defined(OS_ANDROID) | |
1049 // The filter for MessagePort messages between an Android apps and web. | |
1050 scoped_refptr<AppWebMessagePortMessageFilter> | |
1051 app_web_message_port_message_filter_; | |
1052 #endif | |
1053 | |
1054 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_; | 1042 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_; |
1055 | 1043 |
1056 // The object managing the accessibility tree for this frame. | 1044 // The object managing the accessibility tree for this frame. |
1057 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 1045 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
1058 | 1046 |
1059 // This is nonzero if we sent an accessibility reset to the renderer and | 1047 // This is nonzero if we sent an accessibility reset to the renderer and |
1060 // we're waiting for an IPC containing this reset token (sequentially | 1048 // we're waiting for an IPC containing this reset token (sequentially |
1061 // assigned) and a complete replacement accessibility tree. | 1049 // assigned) and a complete replacement accessibility tree. |
1062 int accessibility_reset_token_; | 1050 int accessibility_reset_token_; |
1063 | 1051 |
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1168 | 1156 |
1169 // NOTE: This must be the last member. | 1157 // NOTE: This must be the last member. |
1170 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1158 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1171 | 1159 |
1172 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1160 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1173 }; | 1161 }; |
1174 | 1162 |
1175 } // namespace content | 1163 } // namespace content |
1176 | 1164 |
1177 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1165 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |