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

Unified Diff: content/browser/site_instance_impl.h

Issue 701953006: PlzNavigate: Speculatively spawns a renderer process for navigations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed creis comments. Created 6 years, 1 month 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/site_instance_impl.h
diff --git a/content/browser/site_instance_impl.h b/content/browser/site_instance_impl.h
index 2c55688bc323424f5c5227157d9ceacf440ba551..f1de23d5cd52ed857c2c0470d0c4c35627b4f320 100644
--- a/content/browser/site_instance_impl.h
+++ b/content/browser/site_instance_impl.h
@@ -84,6 +84,11 @@ class CONTENT_EXPORT SiteInstanceImpl : public SiteInstance,
static GURL GetEffectiveURL(BrowserContext* browser_context,
const GURL& url);
+ // Creates a new related SiteInstance that is not bound to a URL.
+ // Note: use with care! When setting the URL later on for if it already exists
+ // within the browsing instance that will lead to inconsistencies.
+ SiteInstance* GetRelatedEmptySiteInstance();
+
protected:
friend class BrowsingInstance;
friend class SiteInstance;

Powered by Google App Engine
This is Rietveld 408576698