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

Side by Side Diff: components/content_settings/core/browser/content_settings_info.h

Issue 2853983002: Ensure settings returned from Content Settings providers are valid (Closed)
Patch Set: Ensure settings returned from Content Settings providers are valid Created 3 years, 7 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_INFO_H_ 5 #ifndef COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_INFO_H_
6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_INFO_H_ 6 #define COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_INFO_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 28 matching lines...) Expand all
39 ~ContentSettingsInfo(); 39 ~ContentSettingsInfo();
40 40
41 const WebsiteSettingsInfo* website_settings_info() const { 41 const WebsiteSettingsInfo* website_settings_info() const {
42 return website_settings_info_; 42 return website_settings_info_;
43 } 43 }
44 const std::vector<std::string>& whitelisted_schemes() const { 44 const std::vector<std::string>& whitelisted_schemes() const {
45 return whitelisted_schemes_; 45 return whitelisted_schemes_;
46 } 46 }
47 47
48 bool IsSettingValid(ContentSetting setting) const; 48 bool IsSettingValid(ContentSetting setting) const;
49 bool IsDefaultSettingValid(ContentSetting setting) const;
49 50
50 IncognitoBehavior incognito_behavior() const { return incognito_behavior_; } 51 IncognitoBehavior incognito_behavior() const { return incognito_behavior_; }
51 52
52 private: 53 private:
53 const WebsiteSettingsInfo* website_settings_info_; 54 const WebsiteSettingsInfo* website_settings_info_;
54 const std::vector<std::string> whitelisted_schemes_; 55 const std::vector<std::string> whitelisted_schemes_;
55 const std::set<ContentSetting> valid_settings_; 56 const std::set<ContentSetting> valid_settings_;
56 const IncognitoBehavior incognito_behavior_; 57 const IncognitoBehavior incognito_behavior_;
57 58
58 DISALLOW_COPY_AND_ASSIGN(ContentSettingsInfo); 59 DISALLOW_COPY_AND_ASSIGN(ContentSettingsInfo);
59 }; 60 };
60 61
61 } // namespace content_settings 62 } // namespace content_settings
62 63
63 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_INFO_H_ 64 #endif // COMPONENTS_CONTENT_SETTINGS_CORE_BROWSER_CONTENT_SETTINGS_INFO_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698