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 FrameTree; | 83 class FrameTree; |
85 class FrameTreeNode; | 84 class FrameTreeNode; |
86 class MediaInterfaceProxy; | 85 class MediaInterfaceProxy; |
87 class NavigationHandleImpl; | 86 class NavigationHandleImpl; |
88 class PermissionServiceContext; | 87 class PermissionServiceContext; |
89 class RenderFrameHostDelegate; | 88 class RenderFrameHostDelegate; |
90 class RenderFrameProxyHost; | 89 class RenderFrameProxyHost; |
91 class RenderProcessHost; | 90 class RenderProcessHost; |
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // return a nullptr, whereas GetView() potentially will (for instance, | 304 // return a nullptr, whereas GetView() potentially will (for instance, |
306 // after a renderer crash). | 305 // after a renderer crash). |
307 // | 306 // |
308 // This method crashes if this RenderFrameHostImpl does not own a | 307 // This method crashes if this RenderFrameHostImpl does not own a |
309 // a RenderWidgetHost and nor does any of its ancestors. That would | 308 // a RenderWidgetHost and nor does any of its ancestors. That would |
310 // typically mean that the frame has been detached from the frame tree. | 309 // typically mean that the frame has been detached from the frame tree. |
311 RenderWidgetHostImpl* GetRenderWidgetHost(); | 310 RenderWidgetHostImpl* GetRenderWidgetHost(); |
312 | 311 |
313 GlobalFrameRoutingId GetGlobalFrameRoutingId(); | 312 GlobalFrameRoutingId GetGlobalFrameRoutingId(); |
314 | 313 |
315 #if defined(OS_ANDROID) | |
316 scoped_refptr<AppWebMessagePortMessageFilter> | |
317 GetAppWebMessagePortMessageFilter(int routing_id); | |
318 #endif | |
319 | |
320 // This function is called when this is a swapped out RenderFrameHost that | 314 // This function is called when this is a swapped out RenderFrameHost that |
321 // lives in the same process as the parent frame. The | 315 // lives in the same process as the parent frame. The |
322 // |cross_process_frame_connector| allows the non-swapped-out | 316 // |cross_process_frame_connector| allows the non-swapped-out |
323 // RenderFrameHost for a frame to communicate with the parent process | 317 // RenderFrameHost for a frame to communicate with the parent process |
324 // so that it may composite drawing data. | 318 // so that it may composite drawing data. |
325 // | 319 // |
326 // Ownership is not transfered. | 320 // Ownership is not transfered. |
327 void set_cross_process_frame_connector( | 321 void set_cross_process_frame_connector( |
328 CrossProcessFrameConnector* cross_process_frame_connector) { | 322 CrossProcessFrameConnector* cross_process_frame_connector) { |
329 cross_process_frame_connector_ = cross_process_frame_connector; | 323 cross_process_frame_connector_ = cross_process_frame_connector; |
(...skipping 700 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1030 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; | 1024 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; |
1031 | 1025 |
1032 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; | 1026 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; |
1033 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; | 1027 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; |
1034 | 1028 |
1035 service_manager::ServiceInfo browser_info_; | 1029 service_manager::ServiceInfo browser_info_; |
1036 service_manager::ServiceInfo renderer_info_; | 1030 service_manager::ServiceInfo renderer_info_; |
1037 | 1031 |
1038 int on_connect_handler_id_ = 0; | 1032 int on_connect_handler_id_ = 0; |
1039 | 1033 |
1040 #if defined(OS_ANDROID) | |
1041 // The filter for MessagePort messages between an Android apps and web. | |
1042 scoped_refptr<AppWebMessagePortMessageFilter> | |
1043 app_web_message_port_message_filter_; | |
1044 #endif | |
1045 | |
1046 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_; | 1034 std::list<std::unique_ptr<WebBluetoothServiceImpl>> web_bluetooth_services_; |
1047 | 1035 |
1048 // The object managing the accessibility tree for this frame. | 1036 // The object managing the accessibility tree for this frame. |
1049 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 1037 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
1050 | 1038 |
1051 // This is nonzero if we sent an accessibility reset to the renderer and | 1039 // This is nonzero if we sent an accessibility reset to the renderer and |
1052 // we're waiting for an IPC containing this reset token (sequentially | 1040 // we're waiting for an IPC containing this reset token (sequentially |
1053 // assigned) and a complete replacement accessibility tree. | 1041 // assigned) and a complete replacement accessibility tree. |
1054 int accessibility_reset_token_; | 1042 int accessibility_reset_token_; |
1055 | 1043 |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1157 | 1145 |
1158 // NOTE: This must be the last member. | 1146 // NOTE: This must be the last member. |
1159 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1147 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1160 | 1148 |
1161 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1149 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1162 }; | 1150 }; |
1163 | 1151 |
1164 } // namespace content | 1152 } // namespace content |
1165 | 1153 |
1166 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1154 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |