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

Unified Diff: content/browser/browsing_instance.h

Issue 1797363002: "Top Document Isolation" mode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix up tests. Necessary rebase to obtain browsertest util behavior change. Created 4 years, 9 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/browsing_instance.h
diff --git a/content/browser/browsing_instance.h b/content/browser/browsing_instance.h
index 0cb80ac80a986940d242d23f538a8460c6bde2dc..8a667cf0ffd2a3f5d104c9c4430d172f9db099c6 100644
--- a/content/browser/browsing_instance.h
+++ b/content/browser/browsing_instance.h
@@ -73,6 +73,12 @@ class CONTENT_EXPORT BrowsingInstance
// SiteInstance per site.
SiteInstance* GetSiteInstanceForURL(const GURL& url);
+ // Returns a SiteInstance that should be used for subframes when an oopif is
+ // required, but a dedicated process is not. This SiteInstance will be created
+ // if it doesn't already exist. There is at most one of these per
+ // BrowsingInstance.
+ SiteInstance* GetDefaultSubframeSiteInstance();
+
// Adds the given SiteInstance to our map, to ensure that we do not create
// another SiteInstance for the same site.
void RegisterSiteInstance(SiteInstance* site_instance);
@@ -120,6 +126,8 @@ class CONTENT_EXPORT BrowsingInstance
// Number of WebContentses currently using this BrowsingInstance.
size_t active_contents_count_;
+ SiteInstance* default_subframe_site_instance_ = nullptr;
+
DISALLOW_COPY_AND_ASSIGN(BrowsingInstance);
};

Powered by Google App Engine
This is Rietveld 408576698