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 // Integer that specifies the index of the tab the user was on when they | 16 // Integer that specifies the index of the tab the user was on when they |
17 // last visited the content settings window. | 17 // last visited the content settings window. |
18 const char kContentSettingsWindowLastTabIndex[] = | 18 const char kContentSettingsWindowLastTabIndex[] = |
19 "content_settings_window.last_tab_index"; | 19 "content_settings_window.last_tab_index"; |
20 | 20 |
| 21 // Integer that indicates the status of migrating domain scoped settings to |
| 22 // origin scoped settings. |
| 23 // TODO(lshang): Remove this when all migration is done. See crbug.com/621398. |
| 24 const char kDomainToOriginMigrationStatus[] = |
| 25 "profile.content_settings.domain_to_origin_migration_status"; |
| 26 |
21 // Preferences that are exclusively used to store managed values for default | 27 // Preferences that are exclusively used to store managed values for default |
22 // content settings. | 28 // content settings. |
23 const char kManagedDefaultCookiesSetting[] = | 29 const char kManagedDefaultCookiesSetting[] = |
24 "profile.managed_default_content_settings.cookies"; | 30 "profile.managed_default_content_settings.cookies"; |
25 const char kManagedDefaultGeolocationSetting[] = | 31 const char kManagedDefaultGeolocationSetting[] = |
26 "profile.managed_default_content_settings.geolocation"; | 32 "profile.managed_default_content_settings.geolocation"; |
27 const char kManagedDefaultImagesSetting[] = | 33 const char kManagedDefaultImagesSetting[] = |
28 "profile.managed_default_content_settings.images"; | 34 "profile.managed_default_content_settings.images"; |
29 const char kManagedDefaultJavaScriptSetting[] = | 35 const char kManagedDefaultJavaScriptSetting[] = |
30 "profile.managed_default_content_settings.javascript"; | 36 "profile.managed_default_content_settings.javascript"; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 const char kManagedPopupsAllowedForUrls[] = | 76 const char kManagedPopupsAllowedForUrls[] = |
71 "profile.managed_popups_allowed_for_urls"; | 77 "profile.managed_popups_allowed_for_urls"; |
72 const char kManagedPopupsBlockedForUrls[] = | 78 const char kManagedPopupsBlockedForUrls[] = |
73 "profile.managed_popups_blocked_for_urls"; | 79 "profile.managed_popups_blocked_for_urls"; |
74 const char kManagedKeygenAllowedForUrls[] = | 80 const char kManagedKeygenAllowedForUrls[] = |
75 "profile.managed_keygen_allowed_for_urls"; | 81 "profile.managed_keygen_allowed_for_urls"; |
76 const char kManagedKeygenBlockedForUrls[] = | 82 const char kManagedKeygenBlockedForUrls[] = |
77 "profile.managed_keygen_blocked_for_urls"; | 83 "profile.managed_keygen_blocked_for_urls"; |
78 | 84 |
79 } // namespace prefs | 85 } // namespace prefs |
OLD | NEW |