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

Unified Diff: content/browser/frame_host/navigation_request.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/navigation_request.h
diff --git a/content/browser/frame_host/navigation_request.h b/content/browser/frame_host/navigation_request.h
index a4b2e010dec67638a18330a2bb638e80b5ca2e2b..a2a2eca24b3b35062fc6a8994eb0fc04065a937e 100644
--- a/content/browser/frame_host/navigation_request.h
+++ b/content/browser/frame_host/navigation_request.h
@@ -269,6 +269,12 @@ class CONTENT_EXPORT NavigationRequest : public NavigationURLLoaderDelegate {
// The type of SiteInstance associated with this navigation.
AssociatedSiteInstanceType associated_site_instance_type_;
+ // Stores the SiteInstance created on redirects to check if there is an
+ // existing RenderProcessHost that can commit the navigation so that the
+ // renderer process is not deleted while the navigation is ongoing. If the
+ // SiteInstance was a brand new SiteInstance, it is not stored.
+ scoped_refptr<SiteInstance> speculative_site_instance_;
+
// Whether the request may be transferred to a different process upon commit.
// True for browser-initiated navigations and renderer-inititated navigations
// started via the OpenURL path.
« no previous file with comments | « content/browser/frame_host/navigation_handle_impl_unittest.cc ('k') | content/browser/frame_host/navigation_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698