OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "components/content_settings/core/common/pref_names.h" | 5 #include "components/content_settings/core/common/pref_names.h" |
6 | 6 |
7 namespace prefs { | 7 namespace prefs { |
8 | 8 |
9 // Boolean that is true if we should unconditionally block third-party cookies, | 9 // Boolean that is true if we should unconditionally block third-party cookies, |
10 // regardless of other content settings. | 10 // regardless of other content settings. |
11 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; | 11 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; |
12 | 12 |
13 // Version of the pattern format used to define content settings. | 13 // Version of the pattern format used to define content settings. |
14 const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; | 14 const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; |
15 | 15 |
16 // Patterns for mapping origins to origin related settings. Default settings | 16 // Patterns for mapping origins to origin related settings. Default settings |
17 // will be applied to origins that don't match any of the patterns. The pattern | 17 // will be applied to origins that don't match any of the patterns. The pattern |
18 // format used is defined by kContentSettingsVersion. | 18 // format used is defined by kContentSettingsVersion. |
19 const char kContentSettingsPatternPairs[] = | 19 const char kContentSettingsPatternPairs[] = |
20 "profile.content_settings.pattern_pairs"; | 20 "profile.content_settings.pattern_pairs"; |
21 | 21 |
22 // Integer that specifies the index of the tab the user was on when they | 22 // Integer that specifies the index of the tab the user was on when they |
23 // last visited the content settings window. | 23 // last visited the content settings window. |
24 const char kContentSettingsWindowLastTabIndex[] = | 24 const char kContentSettingsWindowLastTabIndex[] = |
25 "content_settings_window.last_tab_index"; | 25 "content_settings_window.last_tab_index"; |
26 | 26 |
27 // Dictionary of content settings applied to all hosts by default. | |
28 // TODO(msramek): Deprecated. Use the individual preferences below. | |
29 const char kDefaultContentSettings[] = "profile.default_content_settings"; | |
30 | |
31 // Whether |kDefaultContentSettings| has already been migrated to | |
32 // |kDefault<type>Setting| prefs. | |
33 const char kMigratedDefaultContentSettings[] = | |
34 "profile.migrated_default_content_settings"; | |
35 | |
36 // Preferences storing the default values for individual content settings. | 27 // Preferences storing the default values for individual content settings. |
37 const char kDefaultCookiesSetting[] = | 28 const char kDefaultCookiesSetting[] = |
38 "profile.default_content_setting_values.cookies"; | 29 "profile.default_content_setting_values.cookies"; |
39 const char kDefaultImagesSetting[] = | 30 const char kDefaultImagesSetting[] = |
40 "profile.default_content_setting_values.images"; | 31 "profile.default_content_setting_values.images"; |
41 const char kDefaultJavaScriptSetting[] = | 32 const char kDefaultJavaScriptSetting[] = |
42 "profile.default_content_setting_values.javascript"; | 33 "profile.default_content_setting_values.javascript"; |
43 const char kDefaultPluginsSetting[] = | 34 const char kDefaultPluginsSetting[] = |
44 "profile.default_content_setting_values.plugins"; | 35 "profile.default_content_setting_values.plugins"; |
45 const char kDefaultPopupsSetting[] = | 36 const char kDefaultPopupsSetting[] = |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 const char kManagedPopupsBlockedForUrls[] = | 189 const char kManagedPopupsBlockedForUrls[] = |
199 "profile.managed_popups_blocked_for_urls"; | 190 "profile.managed_popups_blocked_for_urls"; |
200 const char kManagedNotificationsAllowedForUrls[] = | 191 const char kManagedNotificationsAllowedForUrls[] = |
201 "profile.managed_notifications_allowed_for_urls"; | 192 "profile.managed_notifications_allowed_for_urls"; |
202 const char kManagedNotificationsBlockedForUrls[] = | 193 const char kManagedNotificationsBlockedForUrls[] = |
203 "profile.managed_notifications_blocked_for_urls"; | 194 "profile.managed_notifications_blocked_for_urls"; |
204 const char kManagedAutoSelectCertificateForUrls[] = | 195 const char kManagedAutoSelectCertificateForUrls[] = |
205 "profile.managed_auto_select_certificate_for_urls"; | 196 "profile.managed_auto_select_certificate_for_urls"; |
206 | 197 |
207 } // namespace prefs | 198 } // namespace prefs |
OLD | NEW |