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

Unified Diff: chrome/browser/content_settings/content_settings_provider.h

Issue 6410022: Add content_settings::PrefProvider to HostContentSettingsMap. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: " Created 9 years, 10 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 | « no previous file | chrome/browser/content_settings/host_content_settings_map.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/content_settings/content_settings_provider.h
diff --git a/chrome/browser/content_settings/content_settings_provider.h b/chrome/browser/content_settings/content_settings_provider.h
index 19dae00f88aa5da0d0742849ed9afa82f58ae694..621c5222888982b7b6a3aa91c62d26498a0be622 100644
--- a/chrome/browser/content_settings/content_settings_provider.h
+++ b/chrome/browser/content_settings/content_settings_provider.h
@@ -56,8 +56,8 @@ class ProviderInterface {
embedding_url_pattern(embedding_pattern),
content_setting(setting) {}
- const ContentSettingsPattern requesting_url_pattern;
- const ContentSettingsPattern embedding_url_pattern;
+ ContentSettingsPattern requesting_url_pattern;
+ ContentSettingsPattern embedding_url_pattern;
ContentSetting content_setting;
};
@@ -104,10 +104,19 @@ class ProviderInterface {
const ResourceIdentifier& resource_identifier,
Rules* content_setting_rules) const = 0;
- // Resets all content settings to CONTENT_SETTING_DEFAULT.
+ // Resets all content settings for the given |content_type| to
+ // CONTENT_SETTING_DEFAULT. For content types that require a resource
+ // identifier all content settings for any resource identifieres of the given
+ // |content_type| will be reset to CONTENT_SETTING_DEFAULT.
//
// This should only be called on the UI thread.
- virtual void ClearAllContentSettingsRules() = 0;
+ virtual void ClearAllContentSettingsRules(
+ ContentSettingsType content_type) = 0;
+
+ // Resets all content settings to CONTENT_SETTINGS_DEFAULT.
+ //
+ // This should only be called on the UI thread.
+ virtual void ResetToDefaults() = 0;
};
} // namespace content_settings
« no previous file with comments | « no previous file | chrome/browser/content_settings/host_content_settings_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698