| 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 // Version of the pattern format used to define content settings. | 9 // Version of the pattern format used to define content settings. |
| 10 const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; | 10 const char kContentSettingsVersion[] = "profile.content_settings.pref_version"; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 73 #if defined(OS_WIN) | 73 #if defined(OS_WIN) |
| 74 const char kDefaultMetroSwitchToDesktopSetting[] = | 74 const char kDefaultMetroSwitchToDesktopSetting[] = |
| 75 "profile.default_content_setting_values.metro_switch_to_desktop"; | 75 "profile.default_content_setting_values.metro_switch_to_desktop"; |
| 76 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS) | 76 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS) |
| 77 const char kDefaultProtectedMediaIdentifierSetting[] = | 77 const char kDefaultProtectedMediaIdentifierSetting[] = |
| 78 "profile.default_content_setting_values.protected_media_identifier"; | 78 "profile.default_content_setting_values.protected_media_identifier"; |
| 79 #endif | 79 #endif |
| 80 const char kDefaultAppBannerSetting[] = | 80 const char kDefaultAppBannerSetting[] = |
| 81 "profile.default_content_setting_values.app_banner"; | 81 "profile.default_content_setting_values.app_banner"; |
| 82 | 82 |
| 83 // Boolean indicating whether the media stream default setting had been |
| 84 // migrated into two separate microphone and camera settings. |
| 85 const char kMigratedDefaultMediaStreamSetting[] = |
| 86 "profile.migrated_default_media_stream_content_settings"; |
| 87 |
| 83 // Dictionary of content settings that can globally disallow all hosts by | 88 // Dictionary of content settings that can globally disallow all hosts by |
| 84 // default. If a value is set, it means the setting is globally disallowed. | 89 // default. If a value is set, it means the setting is globally disallowed. |
| 85 // If a value is not set, it means the setting is allowed. | 90 // If a value is not set, it means the setting is allowed. |
| 86 const char kOverrideContentSettings[] = "profile.override_content_settings"; | 91 const char kOverrideContentSettings[] = "profile.override_content_settings"; |
| 87 | 92 |
| 88 // Boolean indicating whether the media stream default setting had been | 93 // Preferences storing the content settings exceptions. |
| 89 // migrated into two separate microphone and camera settings. | 94 const char kContentSettingsCookiesPatternPairs[] = |
| 90 const char kMigratedDefaultMediaStreamSetting[] = | 95 "profile.content_settings.exceptions.cookies"; |
| 91 "profile.migrated_default_media_stream_content_settings"; | 96 const char kContentSettingsImagesPatternPairs[] = |
| 97 "profile.content_settings.exceptions.images"; |
| 98 const char kContentSettingsJavaScriptPatternPairs[] = |
| 99 "profile.content_settings.exceptions.javascript"; |
| 100 const char kContentSettingsPluginsPatternPairs[] = |
| 101 "profile.content_settings.exceptions.plugins"; |
| 102 const char kContentSettingsPopupsPatternPairs[] = |
| 103 "profile.content_settings.exceptions.popups"; |
| 104 const char kContentSettingsGeolocationPatternPairs[] = |
| 105 "profile.content_settings.exceptions.geolocation"; |
| 106 const char kContentSettingsNotificationsPatternPairs[] = |
| 107 "profile.content_settings.exceptions.notifications"; |
| 108 const char kContentSettingsAutoSelectCertificatePatternPairs[] = |
| 109 "profile.content_settings.exceptions.auto_select_certificate"; |
| 110 const char kContentSettingsFullScreenPatternPairs[] = |
| 111 "profile.content_settings.exceptions.fullscreen"; |
| 112 const char kContentSettingsMouseLockPatternPairs[] = |
| 113 "profile.content_settings.exceptions.mouselock"; |
| 114 const char kContentSettingsMixedScriptPatternPairs[] = |
| 115 "profile.content_settings.exceptions.mixed_script"; |
| 116 const char kContentSettingsMediaStreamPatternPairs[] = |
| 117 "profile.content_settings.exceptions.media_stream"; |
| 118 const char kContentSettingsMediaStreamMicPatternPairs[] = |
| 119 "profile.content_settings.exceptions.media_stream_mic"; |
| 120 const char kContentSettingsMediaStreamCameraPatternPairs[] = |
| 121 "profile.content_settings.exceptions.media_stream_camera"; |
| 122 const char kContentSettingsProtocolHandlersPatternPairs[] = |
| 123 "profile.content_settings.exceptions.protocol_handlers"; |
| 124 const char kContentSettingsPpapiBrokerPatternPairs[] = |
| 125 "profile.content_settings.exceptions.ppapi_broker"; |
| 126 const char kContentSettingsAutomaticDownloadsPatternPairs[] = |
| 127 "profile.content_settings.exceptions.automatic_downloads"; |
| 128 const char kContentSettingsMidiSysexPatternPairs[] = |
| 129 "profile.content_settings.exceptions.midi_sysex"; |
| 130 const char kContentSettingsPushMessagingPatternPairs[] = |
| 131 "profile.content_settings.exceptions.push_messaging"; |
| 132 const char kContentSettingsSSLCertDecisionsPatternPairs[] = |
| 133 "profile.content_settings.exceptions.ssl_cert_decisions"; |
| 134 #if defined(OS_WIN) |
| 135 const char kContentSettingsMetroSwitchToDesktopPatternPairs[] = |
| 136 "profile.content_settings.exceptions.metro_switch_to_desktop"; |
| 137 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS) |
| 138 const char kContentSettingsProtectedMediaIdentifierPatternPairs[] = |
| 139 "profile.content_settings.exceptions.protected_media_identifier"; |
| 140 #endif |
| 141 const char kContentSettingsAppBannerPatternPairs[] = |
| 142 "profile.content_settings.exceptions.app_banner"; |
| 143 |
| 144 // Whether the patern pairs have been migrated from the deprecated aggregate |
| 145 // preference |kContentSettingsPatternPairs| to the separate preferences |
| 146 // |kContentSettings<type>PatternPairs|. |
| 147 const char kMigratedContentSettingsPatternPairs[] = |
| 148 "profile.migrated_content_settings_exceptions"; |
| 92 | 149 |
| 93 // Preferences that are exclusively used to store managed values for default | 150 // Preferences that are exclusively used to store managed values for default |
| 94 // content settings. | 151 // content settings. |
| 95 const char kManagedDefaultCookiesSetting[] = | 152 const char kManagedDefaultCookiesSetting[] = |
| 96 "profile.managed_default_content_settings.cookies"; | 153 "profile.managed_default_content_settings.cookies"; |
| 97 const char kManagedDefaultImagesSetting[] = | 154 const char kManagedDefaultImagesSetting[] = |
| 98 "profile.managed_default_content_settings.images"; | 155 "profile.managed_default_content_settings.images"; |
| 99 const char kManagedDefaultJavaScriptSetting[] = | 156 const char kManagedDefaultJavaScriptSetting[] = |
| 100 "profile.managed_default_content_settings.javascript"; | 157 "profile.managed_default_content_settings.javascript"; |
| 101 const char kManagedDefaultPluginsSetting[] = | 158 const char kManagedDefaultPluginsSetting[] = |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 const char kManagedPopupsBlockedForUrls[] = | 191 const char kManagedPopupsBlockedForUrls[] = |
| 135 "profile.managed_popups_blocked_for_urls"; | 192 "profile.managed_popups_blocked_for_urls"; |
| 136 const char kManagedNotificationsAllowedForUrls[] = | 193 const char kManagedNotificationsAllowedForUrls[] = |
| 137 "profile.managed_notifications_allowed_for_urls"; | 194 "profile.managed_notifications_allowed_for_urls"; |
| 138 const char kManagedNotificationsBlockedForUrls[] = | 195 const char kManagedNotificationsBlockedForUrls[] = |
| 139 "profile.managed_notifications_blocked_for_urls"; | 196 "profile.managed_notifications_blocked_for_urls"; |
| 140 const char kManagedAutoSelectCertificateForUrls[] = | 197 const char kManagedAutoSelectCertificateForUrls[] = |
| 141 "profile.managed_auto_select_certificate_for_urls"; | 198 "profile.managed_auto_select_certificate_for_urls"; |
| 142 | 199 |
| 143 } // namespace prefs | 200 } // namespace prefs |
| OLD | NEW |