| 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 | |
| 17 // will be applied to origins that don't match any of the patterns. The pattern | |
| 18 // format used is defined by kContentSettingsVersion. | |
| 19 const char kContentSettingsPatternPairs[] = | |
| 20 "profile.content_settings.pattern_pairs"; | |
| 21 | |
| 22 // 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 |
| 23 // last visited the content settings window. | 17 // last visited the content settings window. |
| 24 const char kContentSettingsWindowLastTabIndex[] = | 18 const char kContentSettingsWindowLastTabIndex[] = |
| 25 "content_settings_window.last_tab_index"; | 19 "content_settings_window.last_tab_index"; |
| 26 | 20 |
| 27 // Dictionary of content settings applied to all hosts by default. | 21 // Dictionary of content settings applied to all hosts by default. |
| 28 // TODO(msramek): Deprecated. Use the individual preferences below. | 22 // TODO(msramek): Deprecated. Use the individual preferences below. |
| 29 const char kDefaultContentSettings[] = "profile.default_content_settings"; | 23 const char kDefaultContentSettings[] = "profile.default_content_settings"; |
| 30 | 24 |
| 31 // Whether |kDefaultContentSettings| has already been migrated to | 25 // Whether |kDefaultContentSettings| has already been migrated to |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 const char kContentSettingsProtectedMediaIdentifierPatternPairs[] = | 135 const char kContentSettingsProtectedMediaIdentifierPatternPairs[] = |
| 142 "profile.content_settings.exceptions.protected_media_identifier"; | 136 "profile.content_settings.exceptions.protected_media_identifier"; |
| 143 #endif | 137 #endif |
| 144 const char kContentSettingsAppBannerPatternPairs[] = | 138 const char kContentSettingsAppBannerPatternPairs[] = |
| 145 "profile.content_settings.exceptions.app_banner"; | 139 "profile.content_settings.exceptions.app_banner"; |
| 146 const char kContentSettingsSiteEngagementPatternPairs[] = | 140 const char kContentSettingsSiteEngagementPatternPairs[] = |
| 147 "profile.content_settings.exceptions.site_engagement"; | 141 "profile.content_settings.exceptions.site_engagement"; |
| 148 const char kContentSettingsDurableStoragePatternPairs[] = | 142 const char kContentSettingsDurableStoragePatternPairs[] = |
| 149 "profile.content_settings.exceptions.durable_storage"; | 143 "profile.content_settings.exceptions.durable_storage"; |
| 150 | 144 |
| 151 // Whether the patern pairs have been migrated from the deprecated aggregate | |
| 152 // preference |kContentSettingsPatternPairs| to the separate preferences | |
| 153 // |kContentSettings<type>PatternPairs|. | |
| 154 const char kMigratedContentSettingsPatternPairs[] = | |
| 155 "profile.migrated_content_settings_exceptions"; | |
| 156 | |
| 157 // Preferences that are exclusively used to store managed values for default | 145 // Preferences that are exclusively used to store managed values for default |
| 158 // content settings. | 146 // content settings. |
| 159 const char kManagedDefaultCookiesSetting[] = | 147 const char kManagedDefaultCookiesSetting[] = |
| 160 "profile.managed_default_content_settings.cookies"; | 148 "profile.managed_default_content_settings.cookies"; |
| 161 const char kManagedDefaultImagesSetting[] = | 149 const char kManagedDefaultImagesSetting[] = |
| 162 "profile.managed_default_content_settings.images"; | 150 "profile.managed_default_content_settings.images"; |
| 163 const char kManagedDefaultJavaScriptSetting[] = | 151 const char kManagedDefaultJavaScriptSetting[] = |
| 164 "profile.managed_default_content_settings.javascript"; | 152 "profile.managed_default_content_settings.javascript"; |
| 165 const char kManagedDefaultPluginsSetting[] = | 153 const char kManagedDefaultPluginsSetting[] = |
| 166 "profile.managed_default_content_settings.plugins"; | 154 "profile.managed_default_content_settings.plugins"; |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 198 const char kManagedPopupsBlockedForUrls[] = | 186 const char kManagedPopupsBlockedForUrls[] = |
| 199 "profile.managed_popups_blocked_for_urls"; | 187 "profile.managed_popups_blocked_for_urls"; |
| 200 const char kManagedNotificationsAllowedForUrls[] = | 188 const char kManagedNotificationsAllowedForUrls[] = |
| 201 "profile.managed_notifications_allowed_for_urls"; | 189 "profile.managed_notifications_allowed_for_urls"; |
| 202 const char kManagedNotificationsBlockedForUrls[] = | 190 const char kManagedNotificationsBlockedForUrls[] = |
| 203 "profile.managed_notifications_blocked_for_urls"; | 191 "profile.managed_notifications_blocked_for_urls"; |
| 204 const char kManagedAutoSelectCertificateForUrls[] = | 192 const char kManagedAutoSelectCertificateForUrls[] = |
| 205 "profile.managed_auto_select_certificate_for_urls"; | 193 "profile.managed_auto_select_certificate_for_urls"; |
| 206 | 194 |
| 207 } // namespace prefs | 195 } // namespace prefs |
| OLD | NEW |