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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
62 class ListValue; | 62 class ListValue; |
63 } | 63 } |
64 | 64 |
65 namespace blink { | 65 namespace blink { |
66 namespace mojom { | 66 namespace mojom { |
67 class WebBluetoothService; | 67 class WebBluetoothService; |
68 } | 68 } |
69 } | 69 } |
70 | 70 |
71 namespace content { | 71 namespace content { |
72 | 72 class AppWebMessagePortMessageFilter; |
73 class AssociatedInterfaceProviderImpl; | 73 class AssociatedInterfaceProviderImpl; |
74 class CrossProcessFrameConnector; | 74 class CrossProcessFrameConnector; |
75 class CrossSiteTransferringRequest; | 75 class CrossSiteTransferringRequest; |
76 class FrameTree; | 76 class FrameTree; |
77 class FrameTreeNode; | 77 class FrameTreeNode; |
78 class NavigationHandleImpl; | 78 class NavigationHandleImpl; |
79 class PermissionServiceContext; | 79 class PermissionServiceContext; |
80 class RenderFrameHostDelegate; | 80 class RenderFrameHostDelegate; |
81 class RenderFrameProxyHost; | 81 class RenderFrameProxyHost; |
82 class RenderProcessHost; | 82 class RenderProcessHost; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
288 // return a nullptr, whereas GetView() potentially will (for instance, | 288 // return a nullptr, whereas GetView() potentially will (for instance, |
289 // after a renderer crash). | 289 // after a renderer crash). |
290 // | 290 // |
291 // This method crashes if this RenderFrameHostImpl does not own a | 291 // This method crashes if this RenderFrameHostImpl does not own a |
292 // a RenderWidgetHost and nor does any of its ancestors. That would | 292 // a RenderWidgetHost and nor does any of its ancestors. That would |
293 // typically mean that the frame has been detached from the frame tree. | 293 // typically mean that the frame has been detached from the frame tree. |
294 RenderWidgetHostImpl* GetRenderWidgetHost(); | 294 RenderWidgetHostImpl* GetRenderWidgetHost(); |
295 | 295 |
296 GlobalFrameRoutingId GetGlobalFrameRoutingId(); | 296 GlobalFrameRoutingId GetGlobalFrameRoutingId(); |
297 | 297 |
298 #if defined(OS_ANDROID) | |
299 scoped_refptr<AppWebMessagePortMessageFilter> | |
300 GetAppWebMessagePortMessageFilter(int routing_id); | |
301 #endif | |
302 | |
298 // This function is called when this is a swapped out RenderFrameHost that | 303 // This function is called when this is a swapped out RenderFrameHost that |
299 // lives in the same process as the parent frame. The | 304 // lives in the same process as the parent frame. The |
300 // |cross_process_frame_connector| allows the non-swapped-out | 305 // |cross_process_frame_connector| allows the non-swapped-out |
301 // RenderFrameHost for a frame to communicate with the parent process | 306 // RenderFrameHost for a frame to communicate with the parent process |
302 // so that it may composite drawing data. | 307 // so that it may composite drawing data. |
303 // | 308 // |
304 // Ownership is not transfered. | 309 // Ownership is not transfered. |
305 void set_cross_process_frame_connector( | 310 void set_cross_process_frame_connector( |
306 CrossProcessFrameConnector* cross_process_frame_connector) { | 311 CrossProcessFrameConnector* cross_process_frame_connector) { |
307 cross_process_frame_connector_ = cross_process_frame_connector; | 312 cross_process_frame_connector_ = cross_process_frame_connector; |
(...skipping 658 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
966 int nav_entry_id_; | 971 int nav_entry_id_; |
967 | 972 |
968 // Used to swap out or shut down this RFH when the unload event is taking too | 973 // Used to swap out or shut down this RFH when the unload event is taking too |
969 // long to execute, depending on the number of active frames in the | 974 // long to execute, depending on the number of active frames in the |
970 // SiteInstance. May be null in tests. | 975 // SiteInstance. May be null in tests. |
971 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; | 976 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; |
972 | 977 |
973 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; | 978 std::unique_ptr<shell::InterfaceRegistry> interface_registry_; |
974 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; | 979 std::unique_ptr<shell::InterfaceProvider> remote_interfaces_; |
975 | 980 |
981 #if defined(OS_ANDROID) | |
982 // The filter for MessagePort messages between an Android apps and web. | |
983 scoped_refptr<AppWebMessagePortMessageFilter> | |
984 app_web_message_port_message_filter_; | |
985 #endif | |
986 | |
976 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; | 987 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; |
977 | 988 |
978 // The object managing the accessibility tree for this frame. | 989 // The object managing the accessibility tree for this frame. |
979 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 990 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
980 | 991 |
981 // This is nonzero if we sent an accessibility reset to the renderer and | 992 // This is nonzero if we sent an accessibility reset to the renderer and |
982 // we're waiting for an IPC containing this reset token (sequentially | 993 // we're waiting for an IPC containing this reset token (sequentially |
983 // assigned) and a complete replacement accessibility tree. | 994 // assigned) and a complete replacement accessibility tree. |
984 int accessibility_reset_token_; | 995 int accessibility_reset_token_; |
985 | 996 |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1050 | 1061 |
1051 // Callback for responding when | 1062 // Callback for responding when |
1052 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. | 1063 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. |
1053 TextSurroundingSelectionCallback text_surrounding_selection_callback_; | 1064 TextSurroundingSelectionCallback text_surrounding_selection_callback_; |
1054 | 1065 |
1055 std::vector<std::unique_ptr<shell::InterfaceRegistry>> media_registries_; | 1066 std::vector<std::unique_ptr<shell::InterfaceRegistry>> media_registries_; |
1056 | 1067 |
1057 std::unique_ptr<AssociatedInterfaceProviderImpl> | 1068 std::unique_ptr<AssociatedInterfaceProviderImpl> |
1058 remote_associated_interfaces_; | 1069 remote_associated_interfaces_; |
1059 | 1070 |
1071 | |
Robert Sesek
2016/10/11 15:44:33
extra blank line
Yusuf
2016/10/11 16:48:47
Done.
| |
1060 // NOTE: This must be the last member. | 1072 // NOTE: This must be the last member. |
1061 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1073 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
1062 | 1074 |
1063 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1075 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
1064 }; | 1076 }; |
1065 | 1077 |
1066 } // namespace content | 1078 } // namespace content |
1067 | 1079 |
1068 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1080 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
OLD | NEW |