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

Unified Diff: content/browser/site_instance_impl.cc

Issue 1777233002: Top document isolation mode prototype (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Doghouse SiteInstance, with bugs 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/site_instance_impl.cc
diff --git a/content/browser/site_instance_impl.cc b/content/browser/site_instance_impl.cc
index 9f88bafc19e967fae60f63a46c3761e9d350cc67..7acd81dd032f2f0d8f2901e2304d87ee56d3797b 100644
--- a/content/browser/site_instance_impl.cc
+++ b/content/browser/site_instance_impl.cc
@@ -28,7 +28,8 @@ SiteInstanceImpl::SiteInstanceImpl(BrowsingInstance* browsing_instance)
active_frame_count_(0),
browsing_instance_(browsing_instance),
process_(NULL),
- has_site_(false) {
+ has_site_(false),
+ is_for_doghouse_(false) {
DCHECK(browsing_instance);
}
@@ -190,6 +191,14 @@ size_t SiteInstanceImpl::GetRelatedActiveContentsCount() {
return browsing_instance_->active_contents_count();
}
+void SiteInstanceImpl::SetForDoghouse(bool value) {
+ is_for_doghouse_ = value;
+}
+
+bool SiteInstanceImpl::IsForDoghouse() const {
+ return is_for_doghouse_;
+}
+
bool SiteInstanceImpl::HasWrongProcessForURL(const GURL& url) {
// Having no process isn't a problem, since we'll assign it correctly.
// Note that HasProcess() may return true if process_ is null, in

Powered by Google App Engine
This is Rietveld 408576698