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

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

Issue 1320673013: Remove HostContentSettingsMap::IsSettingAllowedForType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove-issetting-allowed
Patch Set: Created 5 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: components/content_settings/core/browser/content_settings_info.h
diff --git a/components/content_settings/core/browser/content_settings_info.h b/components/content_settings/core/browser/content_settings_info.h
index 9f336183fc34c3458e130713005fd680be4f4c2e..dcc87b9d999e93386725f601cda9efc2fbfb4d19 100644
--- a/components/content_settings/core/browser/content_settings_info.h
+++ b/components/content_settings/core/browser/content_settings_info.h
@@ -9,6 +9,7 @@
#include <vector>
#include "base/macros.h"
+#include "components/content_settings/core/common/content_settings.h"
namespace content_settings {
@@ -18,7 +19,8 @@ class ContentSettingsInfo {
public:
// This object does not take ownership of |website_settings_info|.
ContentSettingsInfo(const WebsiteSettingsInfo* website_settings_info,
- const std::vector<std::string>& whitelisted_schemes);
+ const std::vector<std::string>& whitelisted_schemes,
+ const std::vector<ContentSetting>& valid_settings);
Bernhard Bauer 2015/09/28 18:46:09 std::set? ContentSetting is an integer enum after
raymes 2015/09/29 05:51:26 Done.
~ContentSettingsInfo();
const WebsiteSettingsInfo* website_settings_info() const {
@@ -28,9 +30,12 @@ class ContentSettingsInfo {
return whitelisted_schemes_;
}
+ bool IsSettingValid(ContentSetting setting) const;
+
private:
const WebsiteSettingsInfo* website_settings_info_;
- std::vector<std::string> whitelisted_schemes_;
+ const std::vector<std::string> whitelisted_schemes_;
+ const std::vector<ContentSetting> valid_settings_;
DISALLOW_COPY_AND_ASSIGN(ContentSettingsInfo);
};

Powered by Google App Engine
This is Rietveld 408576698