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

Unified Diff: content/browser/site_instance_impl.h

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.h
diff --git a/content/browser/site_instance_impl.h b/content/browser/site_instance_impl.h
index 81967cfffa12d827d3e8c35687ee63d9c6ac4fed..8c3412eeee077941e64c7512c5ee3a38f3025fab 100644
--- a/content/browser/site_instance_impl.h
+++ b/content/browser/site_instance_impl.h
@@ -43,6 +43,7 @@ class CONTENT_EXPORT SiteInstanceImpl : public SiteInstance,
bool IsRelatedSiteInstance(const SiteInstance* instance) override;
size_t GetRelatedActiveContentsCount() override;
bool RequiresDedicatedProcess() override;
+ bool IsForDoghouse() const override;
// Set the web site that this SiteInstance is rendering pages for.
// This includes the scheme and registered domain, but not the port. If the
@@ -125,6 +126,8 @@ class CONTENT_EXPORT SiteInstanceImpl : public SiteInstance,
// instead.
explicit SiteInstanceImpl(BrowsingInstance* browsing_instance);
+ void SetForDoghouse(bool);
+
private:
// RenderProcessHostObserver implementation.
void RenderProcessHostDestroyed(RenderProcessHost* host) override;
@@ -163,6 +166,9 @@ class CONTENT_EXPORT SiteInstanceImpl : public SiteInstance,
// Whether SetSite has been called.
bool has_site_;
+ // Whether the SiteInstance is dedicated for doghoused sites.
+ bool is_for_doghouse_;
+
base::ObserverList<Observer, true> observers_;
DISALLOW_COPY_AND_ASSIGN(SiteInstanceImpl);

Powered by Google App Engine
This is Rietveld 408576698