| 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 799 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 810 WebBluetoothServiceImpl* CreateWebBluetoothService( | 810 WebBluetoothServiceImpl* CreateWebBluetoothService( |
| 811 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); | 811 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); |
| 812 | 812 |
| 813 // Deletes the Web Bluetooth Service owned by the frame. | 813 // Deletes the Web Bluetooth Service owned by the frame. |
| 814 void DeleteWebBluetoothService(); | 814 void DeleteWebBluetoothService(); |
| 815 | 815 |
| 816 // Allows tests to disable the swapout event timer to simulate bugs that | 816 // Allows tests to disable the swapout event timer to simulate bugs that |
| 817 // happen before it fires (to avoid flakiness). | 817 // happen before it fires (to avoid flakiness). |
| 818 void DisableSwapOutTimerForTesting(); | 818 void DisableSwapOutTimerForTesting(); |
| 819 | 819 |
| 820 void OnRendererConnect(const service_manager::ServiceInfo& local_info, |
| 821 const service_manager::ServiceInfo& remote_info); |
| 822 |
| 820 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a | 823 // For now, RenderFrameHosts indirectly keep RenderViewHosts alive via a |
| 821 // refcount that calls Shutdown when it reaches zero. This allows each | 824 // refcount that calls Shutdown when it reaches zero. This allows each |
| 822 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring | 825 // RenderFrameHostManager to just care about RenderFrameHosts, while ensuring |
| 823 // we have a RenderViewHost for each RenderFrameHost. | 826 // we have a RenderViewHost for each RenderFrameHost. |
| 824 // TODO(creis): RenderViewHost will eventually go away and be replaced with | 827 // TODO(creis): RenderViewHost will eventually go away and be replaced with |
| 825 // some form of page context. | 828 // some form of page context. |
| 826 RenderViewHostImpl* render_view_host_; | 829 RenderViewHostImpl* render_view_host_; |
| 827 | 830 |
| 828 RenderFrameHostDelegate* delegate_; | 831 RenderFrameHostDelegate* delegate_; |
| 829 | 832 |
| (...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 953 int nav_entry_id_; | 956 int nav_entry_id_; |
| 954 | 957 |
| 955 // Used to swap out or shut down this RFH when the unload event is taking too | 958 // Used to swap out or shut down this RFH when the unload event is taking too |
| 956 // long to execute, depending on the number of active frames in the | 959 // long to execute, depending on the number of active frames in the |
| 957 // SiteInstance. May be null in tests. | 960 // SiteInstance. May be null in tests. |
| 958 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; | 961 std::unique_ptr<TimeoutMonitor> swapout_event_monitor_timeout_; |
| 959 | 962 |
| 960 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; | 963 std::unique_ptr<service_manager::InterfaceRegistry> interface_registry_; |
| 961 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; | 964 std::unique_ptr<service_manager::InterfaceProvider> remote_interfaces_; |
| 962 | 965 |
| 966 service_manager::ServiceInfo browser_info_; |
| 967 service_manager::ServiceInfo renderer_info_; |
| 968 |
| 969 int on_connect_handler_id_ = 0; |
| 970 |
| 963 #if defined(OS_ANDROID) | 971 #if defined(OS_ANDROID) |
| 964 // The filter for MessagePort messages between an Android apps and web. | 972 // The filter for MessagePort messages between an Android apps and web. |
| 965 scoped_refptr<AppWebMessagePortMessageFilter> | 973 scoped_refptr<AppWebMessagePortMessageFilter> |
| 966 app_web_message_port_message_filter_; | 974 app_web_message_port_message_filter_; |
| 967 #endif | 975 #endif |
| 968 | 976 |
| 969 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; | 977 std::unique_ptr<WebBluetoothServiceImpl> web_bluetooth_service_; |
| 970 | 978 |
| 971 // The object managing the accessibility tree for this frame. | 979 // The object managing the accessibility tree for this frame. |
| 972 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; | 980 std::unique_ptr<BrowserAccessibilityManager> browser_accessibility_manager_; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1052 remote_associated_interfaces_; | 1060 remote_associated_interfaces_; |
| 1053 // NOTE: This must be the last member. | 1061 // NOTE: This must be the last member. |
| 1054 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1062 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1055 | 1063 |
| 1056 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1064 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1057 }; | 1065 }; |
| 1058 | 1066 |
| 1059 } // namespace content | 1067 } // namespace content |
| 1060 | 1068 |
| 1061 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1069 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |