| 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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 498 | 498 |
| 499 void OnSetHasReceivedUserGesture(); | 499 void OnSetHasReceivedUserGesture(); |
| 500 | 500 |
| 501 // Sets up the necessary state for a new RenderViewHost. If |proxy| is not | 501 // Sets up the necessary state for a new RenderViewHost. If |proxy| is not |
| 502 // null, it creates a RenderFrameProxy in the target renderer process which is | 502 // null, it creates a RenderFrameProxy in the target renderer process which is |
| 503 // used to route IPC messages when in swapped out state. Returns early if the | 503 // used to route IPC messages when in swapped out state. Returns early if the |
| 504 // RenderViewHost has already been initialized for another RenderFrameHost. | 504 // RenderViewHost has already been initialized for another RenderFrameHost. |
| 505 bool InitRenderView(RenderViewHostImpl* render_view_host, | 505 bool InitRenderView(RenderViewHostImpl* render_view_host, |
| 506 RenderFrameProxyHost* proxy); | 506 RenderFrameProxyHost* proxy); |
| 507 | 507 |
| 508 // Returns the SiteInstance that should be used to host the navigation handled |
| 509 // by |navigation_request|. |
| 510 // Note: the SiteInstance returned by this function may not have an |
| 511 // initialized RenderProcessHost. It will only be initialized when |
| 512 // GetProcess() is called on the SiteInstance. In particular, calling this |
| 513 // function will never lead to a process being created for the navigation. |
| 514 scoped_refptr<SiteInstance> GetSiteInstanceForNavigationRequest( |
| 515 const NavigationRequest& navigation_request); |
| 516 |
| 508 private: | 517 private: |
| 509 friend class NavigatorTestWithBrowserSideNavigation; | 518 friend class NavigatorTestWithBrowserSideNavigation; |
| 510 friend class RenderFrameHostManagerTest; | 519 friend class RenderFrameHostManagerTest; |
| 511 friend class RenderFrameHostTester; | 520 friend class RenderFrameHostTester; |
| 512 friend class TestWebContents; | 521 friend class TestWebContents; |
| 513 | 522 |
| 514 enum class SiteInstanceRelation { | 523 enum class SiteInstanceRelation { |
| 515 // A SiteInstance in a different browsing instance from the current. | 524 // A SiteInstance in a different browsing instance from the current. |
| 516 UNRELATED, | 525 UNRELATED, |
| 517 // A SiteInstance in the same browsing instance as the current. | 526 // A SiteInstance in the same browsing instance as the current. |
| (...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 797 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; | 806 std::unique_ptr<RenderFrameHostImpl> speculative_render_frame_host_; |
| 798 | 807 |
| 799 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; | 808 base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
| 800 | 809 |
| 801 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); | 810 DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |
| 802 }; | 811 }; |
| 803 | 812 |
| 804 } // namespace content | 813 } // namespace content |
| 805 | 814 |
| 806 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ | 815 #endif // CONTENT_BROWSER_FRAME_HOST_RENDER_FRAME_HOST_MANAGER_H_ |
| OLD | NEW |