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

Unified Diff: content/browser/site_instance_impl.cc

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 | « content/browser/site_instance_impl.h ('k') | content/browser/top_document_isolation_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/site_instance_impl.cc
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
index 420a4382eaff95fbd43b98250b04c869bba9a885..40271d4354f0dae21b17a6c48e53a5a1012bbde9 100644
--- a/content/browser/site_instance_impl.cc
+++ b/content/browser/site_instance_impl.cc
@@ -27,8 +27,9 @@ SiteInstanceImpl::SiteInstanceImpl(BrowsingInstance* browsing_instance)
: id_(next_site_instance_id_++),
active_frame_count_(0),
browsing_instance_(browsing_instance),
- process_(NULL),
- has_site_(false) {
+ process_(nullptr),
+ has_site_(false),
+ is_default_subframe_site_instance_(false) {
DCHECK(browsing_instance);
}
@@ -226,11 +227,16 @@ bool SiteInstanceImpl::HasWrongProcessForURL(const GURL& url) {
GetProcess(), browsing_instance_->browser_context(), site_url);
}
+scoped_refptr<SiteInstanceImpl>
+SiteInstanceImpl::GetDefaultSubframeSiteInstance() {
+ return browsing_instance_->GetDefaultSubframeSiteInstance();
+}
+
bool SiteInstanceImpl::RequiresDedicatedProcess() {
if (!has_site_)
return false;
- return SiteInstanceImpl::DoesSiteRequireDedicatedProcess(GetBrowserContext(),
- site_);
+
+ return DoesSiteRequireDedicatedProcess(GetBrowserContext(), site_);
}
void SiteInstanceImpl::IncrementActiveFrameCount() {
@@ -393,7 +399,7 @@ bool SiteInstanceImpl::DoesSiteRequireDedicatedProcess(
void SiteInstanceImpl::RenderProcessHostDestroyed(RenderProcessHost* host) {
DCHECK_EQ(process_, host);
process_->RemoveObserver(this);
- process_ = NULL;
+ process_ = nullptr;
}
void SiteInstanceImpl::RenderProcessWillExit(RenderProcessHost* host) {
« no previous file with comments | « content/browser/site_instance_impl.h ('k') | content/browser/top_document_isolation_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698