| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 |
| 73 class AssociatedInterfaceProviderImpl; | 73 class AssociatedInterfaceProviderImpl; |
| 74 class CrossProcessFrameConnector; | 74 class CrossProcessFrameConnector; |
| 75 class CrossSiteTransferringRequest; | |
| 76 class FrameTree; | 75 class FrameTree; |
| 77 class FrameTreeNode; | 76 class FrameTreeNode; |
| 78 class NavigationHandleImpl; | 77 class NavigationHandleImpl; |
| 79 class PermissionServiceContext; | 78 class PermissionServiceContext; |
| 80 class RenderFrameHostDelegate; | 79 class RenderFrameHostDelegate; |
| 81 class RenderFrameProxyHost; | 80 class RenderFrameProxyHost; |
| 82 class RenderProcessHost; | 81 class RenderProcessHost; |
| 83 class RenderViewHostImpl; | 82 class RenderViewHostImpl; |
| 84 class RenderWidgetHostDelegate; | 83 class RenderWidgetHostDelegate; |
| 85 class RenderWidgetHostImpl; | 84 class RenderWidgetHostImpl; |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 334 // RenderFrameHost. | 333 // RenderFrameHost. |
| 335 void SetNavigationHandle( | 334 void SetNavigationHandle( |
| 336 std::unique_ptr<NavigationHandleImpl> navigation_handle); | 335 std::unique_ptr<NavigationHandleImpl> navigation_handle); |
| 337 | 336 |
| 338 // Gives the ownership of |navigation_handle_| to the caller. | 337 // Gives the ownership of |navigation_handle_| to the caller. |
| 339 // This happens during transfer navigations, where it should be transferred | 338 // This happens during transfer navigations, where it should be transferred |
| 340 // from the RenderFrameHost that issued the initial request to the new | 339 // from the RenderFrameHost that issued the initial request to the new |
| 341 // RenderFrameHost that will issue the transferring request. | 340 // RenderFrameHost that will issue the transferring request. |
| 342 std::unique_ptr<NavigationHandleImpl> PassNavigationHandleOwnership(); | 341 std::unique_ptr<NavigationHandleImpl> PassNavigationHandleOwnership(); |
| 343 | 342 |
| 344 // Called on the pending RenderFrameHost when the network response is ready to | |
| 345 // commit. We should ensure that the old RenderFrameHost runs its unload | |
| 346 // handler and determine whether a transfer to a different RenderFrameHost is | |
| 347 // needed. | |
| 348 void OnCrossSiteResponse(const GlobalRequestID& global_request_id, | |
| 349 std::unique_ptr<CrossSiteTransferringRequest> | |
| 350 cross_site_transferring_request, | |
| 351 const std::vector<GURL>& transfer_url_chain, | |
| 352 const Referrer& referrer, | |
| 353 ui::PageTransition page_transition, | |
| 354 bool should_replace_current_entry); | |
| 355 | |
| 356 // Tells the renderer that this RenderFrame is being swapped out for one in a | 343 // Tells the renderer that this RenderFrame is being swapped out for one in a |
| 357 // different renderer process. It should run its unload handler and move to | 344 // different renderer process. It should run its unload handler and move to |
| 358 // a blank document. If |proxy| is not null, it should also create a | 345 // a blank document. If |proxy| is not null, it should also create a |
| 359 // RenderFrameProxy to replace the RenderFrame and set it to |is_loading| | 346 // RenderFrameProxy to replace the RenderFrame and set it to |is_loading| |
| 360 // state. The renderer should preserve the RenderFrameProxy object until it | 347 // state. The renderer should preserve the RenderFrameProxy object until it |
| 361 // exits, in case we come back. The renderer can exit if it has no other | 348 // exits, in case we come back. The renderer can exit if it has no other |
| 362 // active RenderFrames, but not until WasSwappedOut is called. | 349 // active RenderFrames, but not until WasSwappedOut is called. |
| 363 void SwapOut(RenderFrameProxyHost* proxy, bool is_loading); | 350 void SwapOut(RenderFrameProxyHost* proxy, bool is_loading); |
| 364 | 351 |
| 365 // Whether an ongoing navigation is waiting for a BeforeUnload ACK from the | 352 // Whether an ongoing navigation is waiting for a BeforeUnload ACK from the |
| (...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1059 | 1046 |
| 1060 // NOTE: This must be the last member. | 1047 // NOTE: This must be the last member. |
| 1061 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; | 1048 base::WeakPtrFactory<RenderFrameHostImpl> weak_ptr_factory_; |
| 1062 | 1049 |
| 1063 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); | 1050 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostImpl); |
| 1064 }; | 1051 }; |
| 1065 | 1052 |
| 1066 } // namespace content | 1053 } // namespace content |
| 1067 | 1054 |
| 1068 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ | 1055 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_IMPL_H_ |
| OLD | NEW |