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

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 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..b3071d1b64fcd1c20496d27e8858908db35f8541 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 initalized
+ // 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;

Powered by Google App Engine
This is Rietveld 408576698