summaryrefslogtreecommitdiffstats
path: root/chrome/browser/content_settings/content_settings_provider.h
diff options
context:
space:
mode:
authorbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 09:04:38 +0000
committerbauerb@chromium.org <bauerb@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-12 09:04:38 +0000
commit35552dc595f511b2771410a3bd484b86bf03e84d (patch)
tree3ca3959b56eb468cae33022978aac7ca0b2c8c7c /chrome/browser/content_settings/content_settings_provider.h
parentf5a376ac047c5b0d89fd1d09ef27c34b205f015c (diff)
downloadchromium_src-35552dc595f511b2771410a3bd484b86bf03e84d.zip
chromium_src-35552dc595f511b2771410a3bd484b86bf03e84d.tar.gz
chromium_src-35552dc595f511b2771410a3bd484b86bf03e84d.tar.bz2
Explicitly ShutdownOnUIThread the HostContentSettingsMap when destroying the Profile.
Also, get rid of Profile dependencies while we're at it. BUG=88037,88557 Review URL: http://codereview.chromium.org/7218073 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@92128 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/content_settings/content_settings_provider.h')
-rw-r--r--chrome/browser/content_settings/content_settings_provider.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/content_settings/content_settings_provider.h b/chrome/browser/content_settings/content_settings_provider.h
index b94697b..8065dbe 100644
--- a/chrome/browser/content_settings/content_settings_provider.h
+++ b/chrome/browser/content_settings/content_settings_provider.h
@@ -42,6 +42,8 @@ class DefaultProviderInterface {
// there shouldn't be any UI shown to modify this setting.
virtual bool DefaultSettingIsManaged(
ContentSettingsType content_type) const = 0;
+
+ virtual void ShutdownOnUIThread() = 0;
};
class ProviderInterface {
@@ -103,7 +105,7 @@ class ProviderInterface {
// 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
+ // identifier all content settings for any resource identifiers of the given
// |content_type| will be reset to CONTENT_SETTING_DEFAULT.
//
// This should only be called on the UI thread, and not after
@@ -115,7 +117,7 @@ class ProviderInterface {
// This methods needs to be called before destroying the Profile.
// Afterwards, none of the methods above that should only be called on the UI
// thread should be called anymore.
- virtual void ShutdownOnUIThread() {}
+ virtual void ShutdownOnUIThread() = 0;
};
} // namespace content_settings