Index: content/browser/frame_host/render_frame_host_manager.h |
diff --git a/content/browser/frame_host/render_frame_host_manager.h b/content/browser/frame_host/render_frame_host_manager.h |
index 058f6a0891f4266954a2d5f6894f825d0ffff5b8..e6aa84ae7dcec6b3bc4fb48415f9cc993707aa9b 100644 |
--- a/content/browser/frame_host/render_frame_host_manager.h |
+++ b/content/browser/frame_host/render_frame_host_manager.h |
@@ -18,7 +18,6 @@ |
#include "content/public/common/referrer.h" |
#include "ui/base/page_transition_types.h" |
-struct FrameHostMsg_BeginNavigation_Params; |
struct FrameMsg_Navigate_Params; |
namespace content { |
@@ -30,7 +29,6 @@ class FrameTreeNode; |
class NavigationControllerImpl; |
class NavigationEntry; |
class NavigationEntryImpl; |
-class NavigationRequest; |
class RenderFrameHost; |
class RenderFrameHostDelegate; |
class RenderFrameHost; |
@@ -43,9 +41,6 @@ class RenderWidgetHostDelegate; |
class RenderWidgetHostView; |
class TestWebContents; |
class WebUIImpl; |
-struct CommonNavigationParams; |
-struct NavigationBeforeCommitInfo; |
-struct RequestNavigationParams; |
// Manages RenderFrameHosts for a FrameTreeNode. This class acts as a state |
// machine to make cross-process navigations in a frame possible. |
@@ -316,24 +311,10 @@ class CONTENT_EXPORT RenderFrameHostManager : public NotificationObserver { |
// RenderFrameHostManager. Returns MSG_ROUTING_NONE if none is found. |
int GetRoutingIdForSiteInstance(SiteInstance* site_instance); |
- // PlzNavigate: sends a RequestNavigation IPC to the renderer to ask it to |
- // navigate. If no live renderer is present, then the navigation request will |
- // be sent directly to the ResourceDispatcherHost. Takes ownership of |
- // |navigation_request|. |
- bool RequestNavigation(scoped_ptr<NavigationRequest> navigation_request, |
- const RequestNavigationParams& request_params); |
- |
- // PlzNavigate: Used to start a navigation. OnBeginNavigation is called |
- // directly by RequestNavigation when there is no live renderer. Otherwise, it |
- // is called following a BeginNavigation IPC from the renderer (which in |
- // browser-initiated navigation also happens after RequestNavigation has been |
- // called). |
- void OnBeginNavigation(const FrameHostMsg_BeginNavigation_Params& params, |
- const CommonNavigationParams& common_params); |
- |
- // PlzNavigate: Called when a navigation request has received a response, to |
- // select a renderer to use for the navigation. |
- void CommitNavigation(const NavigationBeforeCommitInfo& info); |
+ // PlzNavigate: Called when a navigation is ready to commit, to select the |
+ // renderer that will commit it. |
+ RenderFrameHostImpl* GetFrameHostForNavigation(const GURL& url, |
+ ui::PageTransition transition); |
private: |
friend class RenderFrameHostManagerTest; |
@@ -342,11 +323,6 @@ class CONTENT_EXPORT RenderFrameHostManager : public NotificationObserver { |
FRIEND_TEST_ALL_PREFIXES(CrossProcessFrameTreeBrowserTest, |
CreateCrossProcessSubframeProxies); |
- // Returns the current navigation request (used in the PlzNavigate navigation |
- // logic refactoring project). |
- NavigationRequest* navigation_request_for_testing() const { |
- return navigation_request_.get(); } |
- |
// Used with FrameTree::ForEach to erase RenderFrameProxyHosts from a |
// FrameTreeNode's RenderFrameHostManager. |
static bool ClearProxiesInSiteInstance(int32 site_instance_id, |
@@ -536,10 +512,6 @@ class CONTENT_EXPORT RenderFrameHostManager : public NotificationObserver { |
NotificationRegistrar registrar_; |
- // PlzNavigate: Owns a navigation request that originated in that frame until |
- // it commits. |
- scoped_ptr<NavigationRequest> navigation_request_; |
- |
base::WeakPtrFactory<RenderFrameHostManager> weak_factory_; |
DISALLOW_COPY_AND_ASSIGN(RenderFrameHostManager); |