| 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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 namespace gfx { | 72 namespace gfx { |
| 73 class Range; | 73 class Range; |
| 74 } | 74 } |
| 75 | 75 |
| 76 namespace content { | 76 namespace content { |
| 77 class AppWebMessagePortMessageFilter; | 77 class AppWebMessagePortMessageFilter; |
| 78 class AssociatedInterfaceProviderImpl; | 78 class AssociatedInterfaceProviderImpl; |
| 79 class CrossProcessFrameConnector; | 79 class CrossProcessFrameConnector; |
| 80 class FrameTree; | 80 class FrameTree; |
| 81 class FrameTreeNode; | 81 class FrameTreeNode; |
| 82 class MediaInterfaceProxy; |
| 82 class NavigationHandleImpl; | 83 class NavigationHandleImpl; |
| 83 class PermissionServiceContext; | 84 class PermissionServiceContext; |
| 84 class RenderFrameHostDelegate; | 85 class RenderFrameHostDelegate; |
| 85 class RenderFrameProxyHost; | 86 class RenderFrameProxyHost; |
| 86 class RenderProcessHost; | 87 class RenderProcessHost; |
| 87 class RenderViewHostImpl; | 88 class RenderViewHostImpl; |
| 88 class RenderWidgetHostDelegate; | 89 class RenderWidgetHostDelegate; |
| 89 class RenderWidgetHostImpl; | 90 class RenderWidgetHostImpl; |
| 90 class RenderWidgetHostView; | 91 class RenderWidgetHostView; |
| 91 class RenderWidgetHostViewBase; | 92 class RenderWidgetHostViewBase; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 189 gfx::Rect AccessibilityGetViewBounds() const override; | 190 gfx::Rect AccessibilityGetViewBounds() const override; |
| 190 gfx::Point AccessibilityOriginInScreen( | 191 gfx::Point AccessibilityOriginInScreen( |
| 191 const gfx::Rect& bounds) const override; | 192 const gfx::Rect& bounds) const override; |
| 192 void AccessibilityFatalError() override; | 193 void AccessibilityFatalError() override; |
| 193 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; | 194 gfx::AcceleratedWidget AccessibilityGetAcceleratedWidget() override; |
| 194 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; | 195 gfx::NativeViewAccessible AccessibilityGetNativeViewAccessible() override; |
| 195 | 196 |
| 196 // SiteInstanceImpl::Observer | 197 // SiteInstanceImpl::Observer |
| 197 void RenderProcessGone(SiteInstanceImpl* site_instance) override; | 198 void RenderProcessGone(SiteInstanceImpl* site_instance) override; |
| 198 | 199 |
| 199 // service_manager::InterfaceFactory<media::mojom::InterfaceFactory> | |
| 200 void Create(const service_manager::Identity& remote_identity, | |
| 201 media::mojom::InterfaceFactoryRequest request) override; | |
| 202 | |
| 203 // Creates a RenderFrame in the renderer process. | 200 // Creates a RenderFrame in the renderer process. |
| 204 bool CreateRenderFrame(int proxy_routing_id, | 201 bool CreateRenderFrame(int proxy_routing_id, |
| 205 int opener_routing_id, | 202 int opener_routing_id, |
| 206 int parent_routing_id, | 203 int parent_routing_id, |
| 207 int previous_sibling_routing_id); | 204 int previous_sibling_routing_id); |
| 208 | 205 |
| 209 // Tracks whether the RenderFrame for this RenderFrameHost has been created in | 206 // Tracks whether the RenderFrame for this RenderFrameHost has been created in |
| 210 // the renderer process. This is currently only used for subframes. | 207 // the renderer process. This is currently only used for subframes. |
| 211 // TODO(creis): Use this for main frames as well when RVH goes away. | 208 // TODO(creis): Use this for main frames as well when RVH goes away. |
| 212 void SetRenderFrameCreated(bool created); | 209 void SetRenderFrameCreated(bool created); |
| (...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 798 bad_message::BadMessageReason reason); | 795 bad_message::BadMessageReason reason); |
| 799 | 796 |
| 800 // Creates Web Bluetooth Service owned by the frame. Returns a raw pointer | 797 // Creates Web Bluetooth Service owned by the frame. Returns a raw pointer |
| 801 // to it. | 798 // to it. |
| 802 WebBluetoothServiceImpl* CreateWebBluetoothService( | 799 WebBluetoothServiceImpl* CreateWebBluetoothService( |
| 803 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); | 800 mojo::InterfaceRequest<blink::mojom::WebBluetoothService> request); |
| 804 | 801 |
| 805 // Deletes the Web Bluetooth Service owned by the frame. | 802 // Deletes the Web Bluetooth Service owned by the frame. |
| 806 void DeleteWebBluetoothService(); | 803 void DeleteWebBluetoothService(); |
| 807 | 804 |
| 805 // service_manager::InterfaceFactory<media::mojom::InterfaceFactory> |
| 806 void Create(const service_manager::Identity& remote_identity, |
| 807 media::mojom::InterfaceFactoryRequest request) override; |
| 808 |
| 809 // Callback for connection error on the media::mojom::InterfaceFactory client. |
| 810 void OnMediaInterfaceFactoryConnectionError(); |
| 811 |
| 808 // Allows tests to disable the swapout event timer to simulate bugs that | 812 // Allows tests to disable the swapout event timer to simulate bugs that |
| 809 // happen before it fires (to avoid flakiness). | 813 // happen before it fires (to avoid flakiness). |
| 810 void DisableSwapOutTimerForTesting(); | 814 void DisableSwapOutTimerForTesting(); |
| 811 | 815 |
| 812 void OnRendererConnect(const service_manager::ServiceInfo& local_info, | 816 void OnRendererConnect(const service_manager::ServiceInfo& local_info, |
| 813 const service_manager::ServiceInfo& remote_info); | 817 const service_manager::ServiceInfo& remote_info); |
| 814 | 818 |
| 815 // Returns ownership of the NavigationHandle associated with a navigation that | 819 // Returns ownership of the NavigationHandle associated with a navigation that |
| 816 // just committed. | 820 // just committed. |
| 817 std::unique_ptr<NavigationHandleImpl> TakeNavigationHandleForCommit( | 821 std::unique_ptr<NavigationHandleImpl> TakeNavigationHandleForCommit( |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1058 bool waiting_for_init_; | 1062 bool waiting_for_init_; |
| 1059 | 1063 |
| 1060 typedef std::pair<CommonNavigationParams, BeginNavigationParams> | 1064 typedef std::pair<CommonNavigationParams, BeginNavigationParams> |
| 1061 PendingNavigation; | 1065 PendingNavigation; |
| 1062 std::unique_ptr<PendingNavigation> pendinging_navigate_; | 1066 std::unique_ptr<PendingNavigation> pendinging_navigate_; |
| 1063 | 1067 |
| 1064 // Callback for responding when | 1068 // Callback for responding when |
| 1065 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. | 1069 // |FrameHostMsg_TextSurroundingSelectionResponse| message comes. |
| 1066 TextSurroundingSelectionCallback text_surrounding_selection_callback_; | 1070 TextSurroundingSelectionCallback text_surrounding_selection_callback_; |
| 1067 | 1071 |
| 1072 // Hosts media::mojom::InterfaceFactory for the RenderFrame and forwards |
| 1073 // media::mojom::InterfaceFactory calls to the remote "media" service. |
| 1074 std::unique_ptr<MediaInterfaceProxy> media_interface_proxy_; |
| 1075 |
| 1068 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>> | 1076 std::vector<std::unique_ptr<service_manager::InterfaceRegistry>> |
| 1069 media_registries_; | 1077 media_registries_; |
| 1070 | 1078 |
| 1071 std::unique_ptr<AssociatedInterfaceProviderImpl> | 1079 std::unique_ptr<AssociatedInterfaceProviderImpl> |
| 1072 remote_associated_interfaces_; | 1080 remote_associated_interfaces_; |
| 1073 // NOTE: This must be the last member. | 1081 // NOTE: This must be the last member. |
| 1074 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1082 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1075 | 1083 |
| 1076 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1084 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1077 }; | 1085 }; |
| 1078 | 1086 |
| 1079 } // namespace content | 1087 } // namespace content |
| 1080 | 1088 |
| 1081 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1089 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |