Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Side by Side Diff: components/content_settings/core/common/pref_names.cc

Issue 1252073002: Move pref names and default value into WebsiteSettingsInfo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@website-settings-registry-simple
Patch Set: Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // Preferences storing the default values for individual content settings.
28 const char kDefaultCookiesSetting[] =
29 "profile.default_content_setting_values.cookies";
30 const char kDefaultImagesSetting[] =
31 "profile.default_content_setting_values.images";
32 const char kDefaultJavaScriptSetting[] =
33 "profile.default_content_setting_values.javascript";
34 const char kDefaultPluginsSetting[] =
35 "profile.default_content_setting_values.plugins";
36 const char kDefaultPopupsSetting[] =
37 "profile.default_content_setting_values.popups";
38 const char kDefaultGeolocationSetting[] =
39 "profile.default_content_setting_values.geolocation";
40 const char kDefaultNotificationsSetting[] =
41 "profile.default_content_setting_values.notifications";
42 const char kDefaultAutoSelectCertificateSetting[] =
43 "profile.default_content_setting_values.auto_select_certificate";
44 const char kDefaultFullScreenSetting[] =
45 "profile.default_content_setting_values.fullscreen";
46 const char kDefaultMouseLockSetting[] =
47 "profile.default_content_setting_values.mouselock";
48 const char kDefaultMixedScriptSetting[] =
49 "profile.default_content_setting_values.mixed_script";
50 const char kDefaultMediaStreamSetting[] =
51 "profile.default_content_setting_values.media_stream";
52 const char kDefaultMediaStreamMicSetting[] =
53 "profile.default_content_setting_values.media_stream_mic";
54 const char kDefaultMediaStreamCameraSetting[] =
55 "profile.default_content_setting_values.media_stream_camera";
56 const char kDefaultProtocolHandlersSetting[] =
57 "profile.default_content_setting_values.protocol_handlers";
58 const char kDefaultPpapiBrokerSetting[] =
59 "profile.default_content_setting_values.ppapi_broker";
60 const char kDefaultAutomaticDownloadsSetting[] =
61 "profile.default_content_setting_values.automatic_downloads";
62 const char kDefaultMidiSysexSetting[] =
63 "profile.default_content_setting_values.midi_sysex";
64 const char kDefaultPushMessagingSetting[] =
65 "profile.default_content_setting_values.push_messaging";
66 const char kDefaultSSLCertDecisionsSetting[] =
67 "profile.default_content_setting_values.ssl_cert_decisions";
68 #if defined(OS_WIN)
69 const char kDefaultMetroSwitchToDesktopSetting[] =
70 "profile.default_content_setting_values.metro_switch_to_desktop";
71 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS)
72 const char kDefaultProtectedMediaIdentifierSetting[] =
73 "profile.default_content_setting_values.protected_media_identifier";
74 #endif
75 const char kDefaultAppBannerSetting[] =
76 "profile.default_content_setting_values.app_banner";
77 const char kDefaultSiteEngagementSetting[] =
78 "profile.default_content_setting_values.site_engagement";
79 const char kDefaultDurableStorageSetting[] =
80 "profile.default_content_setting_values.durable_storage";
81
82 // Boolean indicating whether the media stream default setting had been 21 // Boolean indicating whether the media stream default setting had been
83 // migrated into two separate microphone and camera settings. 22 // migrated into two separate microphone and camera settings.
84 const char kMigratedDefaultMediaStreamSetting[] = 23 const char kMigratedDefaultMediaStreamSetting[] =
85 "profile.migrated_default_media_stream_content_settings"; 24 "profile.migrated_default_media_stream_content_settings";
86 25
87 // Preferences storing the content settings exceptions.
88 const char kContentSettingsCookiesPatternPairs[] =
89 "profile.content_settings.exceptions.cookies";
90 const char kContentSettingsImagesPatternPairs[] =
91 "profile.content_settings.exceptions.images";
92 const char kContentSettingsJavaScriptPatternPairs[] =
93 "profile.content_settings.exceptions.javascript";
94 const char kContentSettingsPluginsPatternPairs[] =
95 "profile.content_settings.exceptions.plugins";
96 const char kContentSettingsPopupsPatternPairs[] =
97 "profile.content_settings.exceptions.popups";
98 const char kContentSettingsGeolocationPatternPairs[] =
99 "profile.content_settings.exceptions.geolocation";
100 const char kContentSettingsNotificationsPatternPairs[] =
101 "profile.content_settings.exceptions.notifications";
102 const char kContentSettingsAutoSelectCertificatePatternPairs[] =
103 "profile.content_settings.exceptions.auto_select_certificate";
104 const char kContentSettingsFullScreenPatternPairs[] =
105 "profile.content_settings.exceptions.fullscreen";
106 const char kContentSettingsMouseLockPatternPairs[] =
107 "profile.content_settings.exceptions.mouselock";
108 const char kContentSettingsMixedScriptPatternPairs[] =
109 "profile.content_settings.exceptions.mixed_script";
110 const char kContentSettingsMediaStreamPatternPairs[] =
111 "profile.content_settings.exceptions.media_stream";
112 const char kContentSettingsMediaStreamMicPatternPairs[] =
113 "profile.content_settings.exceptions.media_stream_mic";
114 const char kContentSettingsMediaStreamCameraPatternPairs[] =
115 "profile.content_settings.exceptions.media_stream_camera";
116 const char kContentSettingsProtocolHandlersPatternPairs[] =
117 "profile.content_settings.exceptions.protocol_handlers";
118 const char kContentSettingsPpapiBrokerPatternPairs[] =
119 "profile.content_settings.exceptions.ppapi_broker";
120 const char kContentSettingsAutomaticDownloadsPatternPairs[] =
121 "profile.content_settings.exceptions.automatic_downloads";
122 const char kContentSettingsMidiSysexPatternPairs[] =
123 "profile.content_settings.exceptions.midi_sysex";
124 const char kContentSettingsPushMessagingPatternPairs[] =
125 "profile.content_settings.exceptions.push_messaging";
126 const char kContentSettingsSSLCertDecisionsPatternPairs[] =
127 "profile.content_settings.exceptions.ssl_cert_decisions";
128 #if defined(OS_WIN)
129 const char kContentSettingsMetroSwitchToDesktopPatternPairs[] =
130 "profile.content_settings.exceptions.metro_switch_to_desktop";
131 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS)
132 const char kContentSettingsProtectedMediaIdentifierPatternPairs[] =
133 "profile.content_settings.exceptions.protected_media_identifier";
134 #endif
135 const char kContentSettingsAppBannerPatternPairs[] =
136 "profile.content_settings.exceptions.app_banner";
137 const char kContentSettingsSiteEngagementPatternPairs[] =
138 "profile.content_settings.exceptions.site_engagement";
139 const char kContentSettingsDurableStoragePatternPairs[] =
140 "profile.content_settings.exceptions.durable_storage";
141
142 // Whether the patern pairs have been migrated from the deprecated aggregate
143 // preference |kContentSettingsPatternPairs| to the separate preferences
144 // |kContentSettings<type>PatternPairs|.
145 const char kMigratedContentSettingsPatternPairs[] =
146 "profile.migrated_content_settings_exceptions";
147
148 // Preferences that are exclusively used to store managed values for default 26 // Preferences that are exclusively used to store managed values for default
149 // content settings. 27 // content settings.
150 const char kManagedDefaultCookiesSetting[] = 28 const char kManagedDefaultCookiesSetting[] =
151 "profile.managed_default_content_settings.cookies"; 29 "profile.managed_default_content_settings.cookies";
152 const char kManagedDefaultImagesSetting[] = 30 const char kManagedDefaultImagesSetting[] =
153 "profile.managed_default_content_settings.images"; 31 "profile.managed_default_content_settings.images";
154 const char kManagedDefaultJavaScriptSetting[] = 32 const char kManagedDefaultJavaScriptSetting[] =
155 "profile.managed_default_content_settings.javascript"; 33 "profile.managed_default_content_settings.javascript";
156 const char kManagedDefaultPluginsSetting[] = 34 const char kManagedDefaultPluginsSetting[] =
157 "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
189 const char kManagedPopupsBlockedForUrls[] = 67 const char kManagedPopupsBlockedForUrls[] =
190 "profile.managed_popups_blocked_for_urls"; 68 "profile.managed_popups_blocked_for_urls";
191 const char kManagedNotificationsAllowedForUrls[] = 69 const char kManagedNotificationsAllowedForUrls[] =
192 "profile.managed_notifications_allowed_for_urls"; 70 "profile.managed_notifications_allowed_for_urls";
193 const char kManagedNotificationsBlockedForUrls[] = 71 const char kManagedNotificationsBlockedForUrls[] =
194 "profile.managed_notifications_blocked_for_urls"; 72 "profile.managed_notifications_blocked_for_urls";
195 const char kManagedAutoSelectCertificateForUrls[] = 73 const char kManagedAutoSelectCertificateForUrls[] =
196 "profile.managed_auto_select_certificate_for_urls"; 74 "profile.managed_auto_select_certificate_for_urls";
197 75
198 } // namespace prefs 76 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698