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