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

Unified Diff: components/content_settings/core/browser/website_settings_info.h

Issue 1442083002: Stop inheriting push notification permissions from regular to incognito (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed mvanouwerkerk's review comments Created 5 years, 1 month 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: components/content_settings/core/browser/website_settings_info.h
diff --git a/components/content_settings/core/browser/website_settings_info.h b/components/content_settings/core/browser/website_settings_info.h
index 51016ea55209cb803d6ab79e593ea8b354178b81..36733c59dc36ebb88666db993863a0f626b92d43 100644
--- a/components/content_settings/core/browser/website_settings_info.h
+++ b/components/content_settings/core/browser/website_settings_info.h
@@ -40,12 +40,16 @@ class WebsiteSettingsInfo {
REQUESTING_ORIGIN_AND_TOP_LEVEL_ORIGIN_SCOPE
};
+ enum IncognitoBehavior { INHERIT_IN_INCOGNITO,
+ INHERIT_IN_INCOGNITO_EXCEPT_ALLOW };
raymes 2015/11/30 00:28:46 Please document each of these
johnme 2015/11/30 14:56:58 Done.
+
WebsiteSettingsInfo(ContentSettingsType type,
const std::string& name,
scoped_ptr<base::Value> initial_default_value,
SyncStatus sync_status,
LossyStatus lossy_status,
- ScopingType scoping_type);
+ ScopingType scoping_type,
+ IncognitoBehavior incognito_behavior);
~WebsiteSettingsInfo();
ContentSettingsType type() const { return type_; }
@@ -63,6 +67,8 @@ class WebsiteSettingsInfo {
ScopingType scoping_type() const { return scoping_type_; }
+ IncognitoBehavior incognito_behavior() const { return incognito_behavior_; }
+
private:
const ContentSettingsType type_;
const std::string name_;
@@ -73,6 +79,7 @@ class WebsiteSettingsInfo {
const SyncStatus sync_status_;
const LossyStatus lossy_status_;
const ScopingType scoping_type_;
+ const IncognitoBehavior incognito_behavior_;
raymes 2015/11/30 00:28:46 This isn't really relevant for WebsiteSettings. Ca
johnme 2015/11/30 14:56:58 Done.
DISALLOW_COPY_AND_ASSIGN(WebsiteSettingsInfo);
};

Powered by Google App Engine
This is Rietveld 408576698