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

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: Suppress tests under --site-per-process 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
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/browsing_instance.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/browsing_instance.h
diff --git a/content/browser/browsing_instance.h b/content/browser/browsing_instance.h
index fa1acf4c0657647c63a0e01e99a45a2495816dd4..4beb487b9a01a846785609102490334c10ee95a8 100644
--- a/content/browser/browsing_instance.h
+++ b/content/browser/browsing_instance.h
@@ -72,6 +72,12 @@ class CONTENT_EXPORT BrowsingInstance
// SiteInstance per site.
scoped_refptr<SiteInstanceImpl> 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.
+ scoped_refptr<SiteInstanceImpl> GetDefaultSubframeSiteInstance();
+
// Adds the given SiteInstance to our map, to ensure that we do not create
// another SiteInstance for the same site.
void RegisterSiteInstance(SiteInstanceImpl* site_instance);
@@ -118,6 +124,8 @@ class CONTENT_EXPORT BrowsingInstance
// Number of WebContentses currently using this BrowsingInstance.
size_t active_contents_count_;
+ SiteInstanceImpl* default_subframe_site_instance_ = nullptr;
+
DISALLOW_COPY_AND_ASSIGN(BrowsingInstance);
};
« no previous file with comments | « chrome/browser/about_flags.cc ('k') | content/browser/browsing_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698