| 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 // Boolean indicating whether the media stream default setting had been | 21 // Boolean indicating whether the media stream default setting had been |
| 22 // migrated into two separate microphone and camera settings. | 22 // migrated into two separate microphone and camera settings. |
| 23 const char kMigratedDefaultMediaStreamSetting[] = | 23 const char kMigratedDefaultMediaStreamSetting[] = |
| 24 "profile.migrated_default_media_stream_content_settings"; | 24 "profile.migrated_default_media_stream_content_settings"; |
| 25 | 25 |
| 26 // Preferences that are exclusively used to store managed values for default | 26 // Preferences that are exclusively used to store managed values for default |
| 27 // content settings. | 27 // content settings. |
| 28 const char kManagedDefaultCookiesSetting[] = | 28 const char kManagedDefaultCookiesSetting[] = |
| 29 "profile.managed_default_content_settings.cookies"; | 29 "profile.managed_default_content_settings.cookies"; |
| 30 const char kManagedDefaultGeolocationSetting[] = |
| 31 "profile.managed_default_content_settings.geolocation"; |
| 30 const char kManagedDefaultImagesSetting[] = | 32 const char kManagedDefaultImagesSetting[] = |
| 31 "profile.managed_default_content_settings.images"; | 33 "profile.managed_default_content_settings.images"; |
| 32 const char kManagedDefaultJavaScriptSetting[] = | 34 const char kManagedDefaultJavaScriptSetting[] = |
| 33 "profile.managed_default_content_settings.javascript"; | 35 "profile.managed_default_content_settings.javascript"; |
| 36 const char kManagedDefaultNotificationsSetting[] = |
| 37 "profile.managed_default_content_settings.notifications"; |
| 38 const char kManagedDefaultMediaStreamSetting[] = |
| 39 "profile.managed_default_content_settings.media_stream"; |
| 34 const char kManagedDefaultPluginsSetting[] = | 40 const char kManagedDefaultPluginsSetting[] = |
| 35 "profile.managed_default_content_settings.plugins"; | 41 "profile.managed_default_content_settings.plugins"; |
| 36 const char kManagedDefaultPopupsSetting[] = | 42 const char kManagedDefaultPopupsSetting[] = |
| 37 "profile.managed_default_content_settings.popups"; | 43 "profile.managed_default_content_settings.popups"; |
| 38 const char kManagedDefaultGeolocationSetting[] = | |
| 39 "profile.managed_default_content_settings.geolocation"; | |
| 40 const char kManagedDefaultNotificationsSetting[] = | |
| 41 "profile.managed_default_content_settings.notifications"; | |
| 42 const char kManagedDefaultMediaStreamSetting[] = | |
| 43 "profile.managed_default_content_settings.media_stream"; | |
| 44 | 44 |
| 45 // Preferences that are exclusively used to store managed | 45 // Preferences that are exclusively used to store managed |
| 46 // content settings patterns. | 46 // content settings patterns. |
| 47 const char kManagedAutoSelectCertificateForUrls[] = |
| 48 "profile.managed_auto_select_certificate_for_urls"; |
| 47 const char kManagedCookiesAllowedForUrls[] = | 49 const char kManagedCookiesAllowedForUrls[] = |
| 48 "profile.managed_cookies_allowed_for_urls"; | 50 "profile.managed_cookies_allowed_for_urls"; |
| 49 const char kManagedCookiesBlockedForUrls[] = | 51 const char kManagedCookiesBlockedForUrls[] = |
| 50 "profile.managed_cookies_blocked_for_urls"; | 52 "profile.managed_cookies_blocked_for_urls"; |
| 51 const char kManagedCookiesSessionOnlyForUrls[] = | 53 const char kManagedCookiesSessionOnlyForUrls[] = |
| 52 "profile.managed_cookies_sessiononly_for_urls"; | 54 "profile.managed_cookies_sessiononly_for_urls"; |
| 53 const char kManagedImagesAllowedForUrls[] = | 55 const char kManagedImagesAllowedForUrls[] = |
| 54 "profile.managed_images_allowed_for_urls"; | 56 "profile.managed_images_allowed_for_urls"; |
| 55 const char kManagedImagesBlockedForUrls[] = | 57 const char kManagedImagesBlockedForUrls[] = |
| 56 "profile.managed_images_blocked_for_urls"; | 58 "profile.managed_images_blocked_for_urls"; |
| 57 const char kManagedJavaScriptAllowedForUrls[] = | 59 const char kManagedJavaScriptAllowedForUrls[] = |
| 58 "profile.managed_javascript_allowed_for_urls"; | 60 "profile.managed_javascript_allowed_for_urls"; |
| 59 const char kManagedJavaScriptBlockedForUrls[] = | 61 const char kManagedJavaScriptBlockedForUrls[] = |
| 60 "profile.managed_javascript_blocked_for_urls"; | 62 "profile.managed_javascript_blocked_for_urls"; |
| 63 const char kManagedNotificationsAllowedForUrls[] = |
| 64 "profile.managed_notifications_allowed_for_urls"; |
| 65 const char kManagedNotificationsBlockedForUrls[] = |
| 66 "profile.managed_notifications_blocked_for_urls"; |
| 61 const char kManagedPluginsAllowedForUrls[] = | 67 const char kManagedPluginsAllowedForUrls[] = |
| 62 "profile.managed_plugins_allowed_for_urls"; | 68 "profile.managed_plugins_allowed_for_urls"; |
| 63 const char kManagedPluginsBlockedForUrls[] = | 69 const char kManagedPluginsBlockedForUrls[] = |
| 64 "profile.managed_plugins_blocked_for_urls"; | 70 "profile.managed_plugins_blocked_for_urls"; |
| 65 const char kManagedPopupsAllowedForUrls[] = | 71 const char kManagedPopupsAllowedForUrls[] = |
| 66 "profile.managed_popups_allowed_for_urls"; | 72 "profile.managed_popups_allowed_for_urls"; |
| 67 const char kManagedPopupsBlockedForUrls[] = | 73 const char kManagedPopupsBlockedForUrls[] = |
| 68 "profile.managed_popups_blocked_for_urls"; | 74 "profile.managed_popups_blocked_for_urls"; |
| 69 const char kManagedNotificationsAllowedForUrls[] = | |
| 70 "profile.managed_notifications_allowed_for_urls"; | |
| 71 const char kManagedNotificationsBlockedForUrls[] = | |
| 72 "profile.managed_notifications_blocked_for_urls"; | |
| 73 const char kManagedAutoSelectCertificateForUrls[] = | |
| 74 "profile.managed_auto_select_certificate_for_urls"; | |
| 75 | 75 |
| 76 } // namespace prefs | 76 } // namespace prefs |
| OLD | NEW |