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

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

Issue 1825173003: [Policy Experimental] Add "recommended" policies for URL exceptions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync. 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: components/content_settings/core/browser/host_content_settings_map.h
diff --git a/components/content_settings/core/browser/host_content_settings_map.h b/components/content_settings/core/browser/host_content_settings_map.h
index 927305765c5d708efa37b1f53d6afcfbffb2260c..9c3bbdcc7eaa2d4552272b0fc71b57749ff40004 100644
--- a/components/content_settings/core/browser/host_content_settings_map.h
+++ b/components/content_settings/core/browser/host_content_settings_map.h
@@ -57,6 +57,7 @@ class HostContentSettingsMap : public content_settings::Observer,
SUPERVISED_PROVIDER,
CUSTOM_EXTENSION_PROVIDER,
PREF_PROVIDER,
+ RECOMMENDED_POLICY_PROVIDER,
DEFAULT_PROVIDER,
NUM_PROVIDER_TYPES,
};
@@ -83,6 +84,12 @@ class HostContentSettingsMap : public content_settings::Observer,
ContentSetting GetDefaultContentSetting(ContentSettingsType content_type,
std::string* provider_id) const;
+ // Returns the recommended setting for a particular content type.
+ //
+ // This may be called on any thread.
+ ContentSetting GetRecommendedDefaultContentSetting(
+ ContentSettingsType content_type) const;
+
// Returns a single |ContentSetting| which applies to the given URLs. Note
// that certain internal schemes are whitelisted. For |CONTENT_TYPE_COOKIES|,
// |CookieSettings| should be used instead. For content types that can't be

Powered by Google App Engine
This is Rietveld 408576698