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 // Preferences storing the default values for individual content settings. | |
22 const char kDefaultCookiesSetting[] = | |
23 "profile.default_content_setting_values.cookies"; | |
24 const char kDefaultImagesSetting[] = | |
25 "profile.default_content_setting_values.images"; | |
26 const char kDefaultJavaScriptSetting[] = | |
27 "profile.default_content_setting_values.javascript"; | |
28 const char kDefaultPluginsSetting[] = | |
29 "profile.default_content_setting_values.plugins"; | |
30 const char kDefaultPopupsSetting[] = | |
31 "profile.default_content_setting_values.popups"; | |
32 const char kDefaultGeolocationSetting[] = | |
33 "profile.default_content_setting_values.geolocation"; | |
34 const char kDefaultNotificationsSetting[] = | |
35 "profile.default_content_setting_values.notifications"; | |
36 const char kDefaultAutoSelectCertificateSetting[] = | |
37 "profile.default_content_setting_values.auto_select_certificate"; | |
38 const char kDefaultFullScreenSetting[] = | |
39 "profile.default_content_setting_values.fullscreen"; | |
40 const char kDefaultMouseLockSetting[] = | |
41 "profile.default_content_setting_values.mouselock"; | |
42 const char kDefaultMixedScriptSetting[] = | |
43 "profile.default_content_setting_values.mixed_script"; | |
44 const char kDefaultMediaStreamSetting[] = | |
45 "profile.default_content_setting_values.media_stream"; | |
46 const char kDefaultMediaStreamMicSetting[] = | |
47 "profile.default_content_setting_values.media_stream_mic"; | |
48 const char kDefaultMediaStreamCameraSetting[] = | |
49 "profile.default_content_setting_values.media_stream_camera"; | |
50 const char kDefaultProtocolHandlersSetting[] = | |
51 "profile.default_content_setting_values.protocol_handlers"; | |
52 const char kDefaultPpapiBrokerSetting[] = | |
53 "profile.default_content_setting_values.ppapi_broker"; | |
54 const char kDefaultAutomaticDownloadsSetting[] = | |
55 "profile.default_content_setting_values.automatic_downloads"; | |
56 const char kDefaultMidiSysexSetting[] = | |
57 "profile.default_content_setting_values.midi_sysex"; | |
58 const char kDefaultPushMessagingSetting[] = | |
59 "profile.default_content_setting_values.push_messaging"; | |
60 const char kDefaultSSLCertDecisionsSetting[] = | |
61 "profile.default_content_setting_values.ssl_cert_decisions"; | |
62 #if defined(OS_WIN) | |
63 const char kDefaultMetroSwitchToDesktopSetting[] = | |
64 "profile.default_content_setting_values.metro_switch_to_desktop"; | |
65 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS) | |
66 const char kDefaultProtectedMediaIdentifierSetting[] = | |
67 "profile.default_content_setting_values.protected_media_identifier"; | |
68 #endif | |
69 const char kDefaultAppBannerSetting[] = | |
70 "profile.default_content_setting_values.app_banner"; | |
71 const char kDefaultSiteEngagementSetting[] = | |
72 "profile.default_content_setting_values.site_engagement"; | |
73 const char kDefaultDurableStorageSetting[] = | |
74 "profile.default_content_setting_values.durable_storage"; | |
75 | |
76 // Boolean indicating whether the media stream default setting had been | 21 // Boolean indicating whether the media stream default setting had been |
77 // migrated into two separate microphone and camera settings. | 22 // migrated into two separate microphone and camera settings. |
78 const char kMigratedDefaultMediaStreamSetting[] = | 23 const char kMigratedDefaultMediaStreamSetting[] = |
79 "profile.migrated_default_media_stream_content_settings"; | 24 "profile.migrated_default_media_stream_content_settings"; |
80 | 25 |
81 // Preferences storing the content settings exceptions. | |
82 const char kContentSettingsCookiesPatternPairs[] = | |
83 "profile.content_settings.exceptions.cookies"; | |
84 const char kContentSettingsImagesPatternPairs[] = | |
85 "profile.content_settings.exceptions.images"; | |
86 const char kContentSettingsJavaScriptPatternPairs[] = | |
87 "profile.content_settings.exceptions.javascript"; | |
88 const char kContentSettingsPluginsPatternPairs[] = | |
89 "profile.content_settings.exceptions.plugins"; | |
90 const char kContentSettingsPopupsPatternPairs[] = | |
91 "profile.content_settings.exceptions.popups"; | |
92 const char kContentSettingsGeolocationPatternPairs[] = | |
93 "profile.content_settings.exceptions.geolocation"; | |
94 const char kContentSettingsNotificationsPatternPairs[] = | |
95 "profile.content_settings.exceptions.notifications"; | |
96 const char kContentSettingsAutoSelectCertificatePatternPairs[] = | |
97 "profile.content_settings.exceptions.auto_select_certificate"; | |
98 const char kContentSettingsFullScreenPatternPairs[] = | |
99 "profile.content_settings.exceptions.fullscreen"; | |
100 const char kContentSettingsMouseLockPatternPairs[] = | |
101 "profile.content_settings.exceptions.mouselock"; | |
102 const char kContentSettingsMixedScriptPatternPairs[] = | |
103 "profile.content_settings.exceptions.mixed_script"; | |
104 const char kContentSettingsMediaStreamPatternPairs[] = | |
105 "profile.content_settings.exceptions.media_stream"; | |
106 const char kContentSettingsMediaStreamMicPatternPairs[] = | |
107 "profile.content_settings.exceptions.media_stream_mic"; | |
108 const char kContentSettingsMediaStreamCameraPatternPairs[] = | |
109 "profile.content_settings.exceptions.media_stream_camera"; | |
110 const char kContentSettingsProtocolHandlersPatternPairs[] = | |
111 "profile.content_settings.exceptions.protocol_handlers"; | |
112 const char kContentSettingsPpapiBrokerPatternPairs[] = | |
113 "profile.content_settings.exceptions.ppapi_broker"; | |
114 const char kContentSettingsAutomaticDownloadsPatternPairs[] = | |
115 "profile.content_settings.exceptions.automatic_downloads"; | |
116 const char kContentSettingsMidiSysexPatternPairs[] = | |
117 "profile.content_settings.exceptions.midi_sysex"; | |
118 const char kContentSettingsPushMessagingPatternPairs[] = | |
119 "profile.content_settings.exceptions.push_messaging"; | |
120 const char kContentSettingsSSLCertDecisionsPatternPairs[] = | |
121 "profile.content_settings.exceptions.ssl_cert_decisions"; | |
122 #if defined(OS_WIN) | |
123 const char kContentSettingsMetroSwitchToDesktopPatternPairs[] = | |
124 "profile.content_settings.exceptions.metro_switch_to_desktop"; | |
125 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS) | |
126 const char kContentSettingsProtectedMediaIdentifierPatternPairs[] = | |
127 "profile.content_settings.exceptions.protected_media_identifier"; | |
128 #endif | |
129 const char kContentSettingsAppBannerPatternPairs[] = | |
130 "profile.content_settings.exceptions.app_banner"; | |
131 const char kContentSettingsSiteEngagementPatternPairs[] = | |
132 "profile.content_settings.exceptions.site_engagement"; | |
133 const char kContentSettingsDurableStoragePatternPairs[] = | |
134 "profile.content_settings.exceptions.durable_storage"; | |
135 | |
136 // Preferences that are exclusively used to store managed values for default | 26 // Preferences that are exclusively used to store managed values for default |
137 // content settings. | 27 // content settings. |
138 const char kManagedDefaultCookiesSetting[] = | 28 const char kManagedDefaultCookiesSetting[] = |
139 "profile.managed_default_content_settings.cookies"; | 29 "profile.managed_default_content_settings.cookies"; |
140 const char kManagedDefaultImagesSetting[] = | 30 const char kManagedDefaultImagesSetting[] = |
141 "profile.managed_default_content_settings.images"; | 31 "profile.managed_default_content_settings.images"; |
142 const char kManagedDefaultJavaScriptSetting[] = | 32 const char kManagedDefaultJavaScriptSetting[] = |
143 "profile.managed_default_content_settings.javascript"; | 33 "profile.managed_default_content_settings.javascript"; |
144 const char kManagedDefaultPluginsSetting[] = | 34 const char kManagedDefaultPluginsSetting[] = |
145 "profile.managed_default_content_settings.plugins"; | 35 "profile.managed_default_content_settings.plugins"; |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 const char kManagedPopupsBlockedForUrls[] = | 67 const char kManagedPopupsBlockedForUrls[] = |
178 "profile.managed_popups_blocked_for_urls"; | 68 "profile.managed_popups_blocked_for_urls"; |
179 const char kManagedNotificationsAllowedForUrls[] = | 69 const char kManagedNotificationsAllowedForUrls[] = |
180 "profile.managed_notifications_allowed_for_urls"; | 70 "profile.managed_notifications_allowed_for_urls"; |
181 const char kManagedNotificationsBlockedForUrls[] = | 71 const char kManagedNotificationsBlockedForUrls[] = |
182 "profile.managed_notifications_blocked_for_urls"; | 72 "profile.managed_notifications_blocked_for_urls"; |
183 const char kManagedAutoSelectCertificateForUrls[] = | 73 const char kManagedAutoSelectCertificateForUrls[] = |
184 "profile.managed_auto_select_certificate_for_urls"; | 74 "profile.managed_auto_select_certificate_for_urls"; |
185 | 75 |
186 } // namespace prefs | 76 } // namespace prefs |
OLD | NEW |