Index: chrome/browser/content_settings/host_content_settings_map.h |
diff --git a/chrome/browser/content_settings/host_content_settings_map.h b/chrome/browser/content_settings/host_content_settings_map.h |
index b5939b5fcaa726af32e01dda82859553ac1b17ad..6081527741acf1b916d7967905cbf22bdd8d9acd 100644 |
--- a/chrome/browser/content_settings/host_content_settings_map.h |
+++ b/chrome/browser/content_settings/host_content_settings_map.h |
@@ -33,6 +33,7 @@ class Value; |
} |
namespace content_settings { |
+class ObservableProvider; |
class ProviderInterface; |
class PrefProvider; |
} |
@@ -56,15 +57,13 @@ class HostContentSettingsMap |
HostContentSettingsMap(PrefService* prefs, bool incognito); |
-#if defined(ENABLE_EXTENSIONS) |
- // In some cases, the ExtensionService is not available at the time the |
- // HostContentSettingsMap is constructed. In these cases, we register the |
- // service once it's available. |
- void RegisterExtensionService(ExtensionService* extension_service); |
-#endif |
- |
static void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry); |
+ // Adds a new provider for |type|. |
+ void RegisterProvider( |
+ ProviderType type, |
+ scoped_ptr<content_settings::ObservableProvider> provider); |
+ |
// Returns the default setting for a particular content type. If |provider_id| |
// is not NULL, the id of the provider which provided the default setting is |
// assigned to it. |