Add abhijeet.k@samsung.com to AUTHORS list.
[chromium-blink-merge.git] / components / content_settings / core / common / pref_names.cc
blobbffdc49e8601e7ae11dbf9cb14e757da2c57d886
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
3 // found in the LICENSE file.
5 #include "components/content_settings/core/common/pref_names.h"
7 namespace prefs {
9 // Version of the pattern format used to define content settings.
10 const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
12 // Patterns for mapping origins to origin related settings. Default settings
13 // will be applied to origins that don't match any of the patterns. The pattern
14 // format used is defined by kContentSettingsVersion.
15 const char kContentSettingsPatternPairs[] =
16 "profile.content_settings.pattern_pairs";
18 // Integer that specifies the index of the tab the user was on when they
19 // last visited the content settings window.
20 const char kContentSettingsWindowLastTabIndex[] =
21 "content_settings_window.last_tab_index";
23 // Dictionary of content settings applied to all hosts by default.
24 // TODO(msramek): Deprecated. Use the individual preferences below.
25 const char kDefaultContentSettings[] = "profile.default_content_settings";
27 // Whether |kDefaultContentSettings| has already been migrated to
28 // |kDefault<type>Setting| prefs.
29 const char kMigratedDefaultContentSettings[] =
30 "profile.migrated_default_content_settings";
32 // Preferences storing the default values for individual content settings.
33 const char kDefaultCookiesSetting[] =
34 "profile.default_content_setting_values.cookies";
35 const char kDefaultImagesSetting[] =
36 "profile.default_content_setting_values.images";
37 const char kDefaultJavaScriptSetting[] =
38 "profile.default_content_setting_values.javascript";
39 const char kDefaultPluginsSetting[] =
40 "profile.default_content_setting_values.plugins";
41 const char kDefaultPopupsSetting[] =
42 "profile.default_content_setting_values.popups";
43 const char kDefaultGeolocationSetting[] =
44 "profile.default_content_setting_values.geolocation";
45 const char kDefaultNotificationsSetting[] =
46 "profile.default_content_setting_values.notifications";
47 const char kDefaultAutoSelectCertificateSetting[] =
48 "profile.default_content_setting_values.auto_select_certificate";
49 const char kDefaultFullScreenSetting[] =
50 "profile.default_content_setting_values.fullscreen";
51 const char kDefaultMouseLockSetting[] =
52 "profile.default_content_setting_values.mouselock";
53 const char kDefaultMixedScriptSetting[] =
54 "profile.default_content_setting_values.mixed_script";
55 const char kDefaultMediaStreamSetting[] =
56 "profile.default_content_setting_values.media_stream";
57 const char kDefaultMediaStreamMicSetting[] =
58 "profile.default_content_setting_values.media_stream_mic";
59 const char kDefaultMediaStreamCameraSetting[] =
60 "profile.default_content_setting_values.media_stream_camera";
61 const char kDefaultProtocolHandlersSetting[] =
62 "profile.default_content_setting_values.protocol_handlers";
63 const char kDefaultPpapiBrokerSetting[] =
64 "profile.default_content_setting_values.ppapi_broker";
65 const char kDefaultAutomaticDownloadsSetting[] =
66 "profile.default_content_setting_values.automatic_downloads";
67 const char kDefaultMidiSysexSetting[] =
68 "profile.default_content_setting_values.midi_sysex";
69 const char kDefaultPushMessagingSetting[] =
70 "profile.default_content_setting_values.push_messaging";
71 const char kDefaultSSLCertDecisionsSetting[] =
72 "profile.default_content_setting_values.ssl_cert_decisions";
73 #if defined(OS_WIN)
74 const char kDefaultMetroSwitchToDesktopSetting[] =
75 "profile.default_content_setting_values.metro_switch_to_desktop";
76 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS)
77 const char kDefaultProtectedMediaIdentifierSetting[] =
78 "profile.default_content_setting_values.protected_media_identifier";
79 #endif
80 const char kDefaultAppBannerSetting[] =
81 "profile.default_content_setting_values.app_banner";
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";
88 // Dictionary of content settings that can globally disallow all hosts by
89 // default. If a value is set, it means the setting is globally disallowed.
90 // If a value is not set, it means the setting is allowed.
91 const char kOverrideContentSettings[] = "profile.override_content_settings";
93 // Preferences storing the content settings exceptions.
94 const char kContentSettingsCookiesPatternPairs[] =
95 "profile.content_settings.exceptions.cookies";
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";
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";
150 // Preferences that are exclusively used to store managed values for default
151 // content settings.
152 const char kManagedDefaultCookiesSetting[] =
153 "profile.managed_default_content_settings.cookies";
154 const char kManagedDefaultImagesSetting[] =
155 "profile.managed_default_content_settings.images";
156 const char kManagedDefaultJavaScriptSetting[] =
157 "profile.managed_default_content_settings.javascript";
158 const char kManagedDefaultPluginsSetting[] =
159 "profile.managed_default_content_settings.plugins";
160 const char kManagedDefaultPopupsSetting[] =
161 "profile.managed_default_content_settings.popups";
162 const char kManagedDefaultGeolocationSetting[] =
163 "profile.managed_default_content_settings.geolocation";
164 const char kManagedDefaultNotificationsSetting[] =
165 "profile.managed_default_content_settings.notifications";
166 const char kManagedDefaultMediaStreamSetting[] =
167 "profile.managed_default_content_settings.media_stream";
169 // Preferences that are exclusively used to store managed
170 // content settings patterns.
171 const char kManagedCookiesAllowedForUrls[] =
172 "profile.managed_cookies_allowed_for_urls";
173 const char kManagedCookiesBlockedForUrls[] =
174 "profile.managed_cookies_blocked_for_urls";
175 const char kManagedCookiesSessionOnlyForUrls[] =
176 "profile.managed_cookies_sessiononly_for_urls";
177 const char kManagedImagesAllowedForUrls[] =
178 "profile.managed_images_allowed_for_urls";
179 const char kManagedImagesBlockedForUrls[] =
180 "profile.managed_images_blocked_for_urls";
181 const char kManagedJavaScriptAllowedForUrls[] =
182 "profile.managed_javascript_allowed_for_urls";
183 const char kManagedJavaScriptBlockedForUrls[] =
184 "profile.managed_javascript_blocked_for_urls";
185 const char kManagedPluginsAllowedForUrls[] =
186 "profile.managed_plugins_allowed_for_urls";
187 const char kManagedPluginsBlockedForUrls[] =
188 "profile.managed_plugins_blocked_for_urls";
189 const char kManagedPopupsAllowedForUrls[] =
190 "profile.managed_popups_allowed_for_urls";
191 const char kManagedPopupsBlockedForUrls[] =
192 "profile.managed_popups_blocked_for_urls";
193 const char kManagedNotificationsAllowedForUrls[] =
194 "profile.managed_notifications_allowed_for_urls";
195 const char kManagedNotificationsBlockedForUrls[] =
196 "profile.managed_notifications_blocked_for_urls";
197 const char kManagedAutoSelectCertificateForUrls[] =
198 "profile.managed_auto_select_certificate_for_urls";
200 } // namespace prefs