Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(562)

Unified Diff: content/browser/frame_host/render_frame_host_manager.h

Issue 2954623003: PlzNavigate: implement REUSE_COMMITTED_OR_PENDING_SITE for redirects (Closed)
Patch Set: Addressed Charlie's comments Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 da2d6548129220f1e2606a4acc5efe52b070ddb0..df0c3eda3e9c1274cda65368e4cc6ad6d97b5508 100644
--- a/content/browser/frame_host/render_frame_host_manager.h
+++ b/content/browser/frame_host/render_frame_host_manager.h
@@ -505,6 +505,15 @@ class CONTENT_EXPORT RenderFrameHostManager
bool InitRenderView(RenderViewHostImpl* render_view_host,
RenderFrameProxyHost* proxy);
+ // Returns the SiteInstance that should be used to host the navigation handled
+ // by |navigation_request|.
+ // Note: the SiteInstance returned by this function may not have an
+ // initialized RenderProcessHost. It will only be initialized when
+ // GetProcess() is called on the SiteInstance. In particular, calling this
+ // function will never lead to a process being created for the navigation.
+ scoped_refptr<SiteInstance> GetSiteInstanceForNavigationRequest(
+ const NavigationRequest& navigation_request);
+
private:
friend class NavigatorTestWithBrowserSideNavigation;
friend class RenderFrameHostManagerTest;
« no previous file with comments | « content/browser/frame_host/navigation_request.cc ('k') | content/browser/frame_host/render_frame_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698