| 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_MANAGER_H_ | 5 #ifndef CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 6 #define CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 400 // Notifies the RenderFrameHostManager that a new NavigationRequest has been | 400 // Notifies the RenderFrameHostManager that a new NavigationRequest has been |
| 401 // created and set in the FrameTreeNode so that it can speculatively create a | 401 // created and set in the FrameTreeNode so that it can speculatively create a |
| 402 // new RenderFrameHost (and potentially a new process) if needed. | 402 // new RenderFrameHost (and potentially a new process) if needed. |
| 403 void DidCreateNavigationRequest(NavigationRequest* request); | 403 void DidCreateNavigationRequest(NavigationRequest* request); |
| 404 | 404 |
| 405 // PlzNavigate | 405 // PlzNavigate |
| 406 // Called (possibly several times) during a navigation to select or create an | 406 // Called (possibly several times) during a navigation to select or create an |
| 407 // appropriate RenderFrameHost for the provided URL. The returned pointer will | 407 // appropriate RenderFrameHost for the provided URL. The returned pointer will |
| 408 // be for the current or the speculative RenderFrameHost and the instance is | 408 // be for the current or the speculative RenderFrameHost and the instance is |
| 409 // owned by this manager. | 409 // owned by this manager. |
| 410 RenderFrameHostImpl* GetFrameHostForNavigation( | 410 RenderFrameHostImpl* GetFrameHostForNavigation(NavigationRequest* request); |
| 411 const NavigationRequest& request); | |
| 412 | 411 |
| 413 // PlzNavigate | 412 // PlzNavigate |
| 414 // Clean up any state for any ongoing navigation. | 413 // Clean up any state for any ongoing navigation. |
| 415 void CleanUpNavigation(); | 414 void CleanUpNavigation(); |
| 416 | 415 |
| 417 // PlzNavigate | 416 // PlzNavigate |
| 418 // Clears the speculative members, returning the RenderFrameHost to the caller | 417 // Clears the speculative members, returning the RenderFrameHost to the caller |
| 419 // for disposal. | 418 // for disposal. |
| 420 std::unique_ptr<RenderFrameHostImpl> UnsetSpeculativeRenderFrameHost(); | 419 std::unique_ptr<RenderFrameHostImpl> UnsetSpeculativeRenderFrameHost(); |
| 421 | 420 |
| (...skipping 372 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 793 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 795 | 794 |
| 796 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 795 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 797 | 796 |
| 798 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 797 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 799 }; | 798 }; |
| 800 | 799 |
| 801 } // namespace content | 800 } // namespace content |
| 802 | 801 |
| 803 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 802 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |