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

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

Issue 545413002: Detach the dependency from host_content_settings_map to extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ProviderType Created 6 years, 3 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: 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 48e15ccb11b158c81f2769645fe04197d7b0841a..0b1092fde23a405516e88e7ab120d64f1b747ab1 100644
--- a/chrome/browser/content_settings/content_settings_provider.h
+++ b/chrome/browser/content_settings/content_settings_provider.h
@@ -13,6 +13,7 @@
#include <vector>
#include "base/values.h"
+#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_types.h"
class ContentSettingsPattern;
@@ -69,6 +70,12 @@ class ProviderInterface {
// Afterwards, none of the methods above that should only be called on the UI
// thread should be called anymore.
virtual void ShutdownOnUIThread() = 0;
+
+ // Returns the name of the provider.
+ virtual std::string GetProviderName() const = 0;
+
+ // Returns the SettingSource of the provider.
+ virtual content_settings::SettingSource GetSettingSource() const = 0;
};
} // namespace content_settings

Powered by Google App Engine
This is Rietveld 408576698