OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 27 matching lines...) Expand all Loading... |
38 // Maps from a primary pattern/source pair to a OnePatternSettings. All the | 38 // Maps from a primary pattern/source pair to a OnePatternSettings. All the |
39 // mappings in OnePatternSettings share the given primary pattern and source. | 39 // mappings in OnePatternSettings share the given primary pattern and source. |
40 typedef std::map<std::pair<ContentSettingsPattern, std::string>, | 40 typedef std::map<std::pair<ContentSettingsPattern, std::string>, |
41 OnePatternSettings> | 41 OnePatternSettings> |
42 AllPatternsSettings; | 42 AllPatternsSettings; |
43 | 43 |
44 extern const char kSetting[]; | 44 extern const char kSetting[]; |
45 extern const char kOrigin[]; | 45 extern const char kOrigin[]; |
46 extern const char kDisplayName[]; | 46 extern const char kDisplayName[]; |
47 extern const char kOriginForFavicon[]; | 47 extern const char kOriginForFavicon[]; |
| 48 extern const char kExtensionProviderId[]; |
48 extern const char kPolicyProviderId[]; | 49 extern const char kPolicyProviderId[]; |
49 extern const char kSource[]; | 50 extern const char kSource[]; |
50 extern const char kIncognito[]; | 51 extern const char kIncognito[]; |
51 extern const char kEmbeddingOrigin[]; | 52 extern const char kEmbeddingOrigin[]; |
52 extern const char kPreferencesSource[]; | 53 extern const char kPreferencesSource[]; |
53 | 54 |
54 // Group types. | 55 // Group types. |
55 extern const char kGroupTypeUsb[]; | 56 extern const char kGroupTypeUsb[]; |
56 | 57 |
57 // Returns whether a group name has been registered for the given type. | 58 // Returns whether a group name has been registered for the given type. |
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 // Fills in |exceptions| with Values for the given |chooser_type| from map. | 133 // Fills in |exceptions| with Values for the given |chooser_type| from map. |
133 void GetChooserExceptionsFromProfile( | 134 void GetChooserExceptionsFromProfile( |
134 Profile* profile, | 135 Profile* profile, |
135 bool incognito, | 136 bool incognito, |
136 const ChooserTypeNameEntry& chooser_type, | 137 const ChooserTypeNameEntry& chooser_type, |
137 base::ListValue* exceptions); | 138 base::ListValue* exceptions); |
138 | 139 |
139 } // namespace site_settings | 140 } // namespace site_settings |
140 | 141 |
141 #endif // CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_ | 142 #endif // CHROME_BROWSER_UI_WEBUI_SITE_SETTINGS_HELPER_H_ |
OLD | NEW |