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

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

Issue 1005303003: Split the aggregate dictionary of content settings exceptions into per-type dictionaries (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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 // 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 10 matching lines...) Expand all
21 "content_settings_window.last_tab_index"; 21 "content_settings_window.last_tab_index";
22 22
23 // Dictionary of content settings applied to all hosts by default. 23 // Dictionary of content settings applied to all hosts by default.
24 const char kDefaultContentSettings[] = "profile.default_content_settings"; 24 const char kDefaultContentSettings[] = "profile.default_content_settings";
25 25
26 // Dictionary of content settings that can globally disallow all hosts by 26 // Dictionary of content settings that can globally disallow all hosts by
27 // default. If a value is set, it means the setting is globally disallowed. 27 // default. If a value is set, it means the setting is globally disallowed.
28 // If a value is not set, it means the setting is allowed. 28 // If a value is not set, it means the setting is allowed.
29 const char kOverrideContentSettings[] = "profile.override_content_settings"; 29 const char kOverrideContentSettings[] = "profile.override_content_settings";
30 30
31 // Preferences storing the content settings exceptions.
32 const char kContentSettingsCookiesPatternPairs[] =
33 "profile.content_settings.exceptions.cookies";
34 const char kContentSettingsImagesPatternPairs[] =
35 "profile.content_settings.exceptions.images";
36 const char kContentSettingsJavaScriptPatternPairs[] =
37 "profile.content_settings.exceptions.javascript";
38 const char kContentSettingsPluginsPatternPairs[] =
39 "profile.content_settings.exceptions.plugins";
40 const char kContentSettingsPopupsPatternPairs[] =
41 "profile.content_settings.exceptions.popups";
42 const char kContentSettingsGeolocationPatternPairs[] =
43 "profile.content_settings.exceptions.geolocation";
44 const char kContentSettingsNotificationsPatternPairs[] =
45 "profile.content_settings.exceptions.notifications";
46 const char kContentSettingsAutoSelectCertificatePatternPairs[] =
47 "profile.content_settings.exceptions.auto_select_certificate";
48 const char kContentSettingsFullScreenPatternPairs[] =
49 "profile.content_settings.exceptions.fullscreen";
50 const char kContentSettingsMouseLockPatternPairs[] =
51 "profile.content_settings.exceptions.mouselock";
52 const char kContentSettingsMixedScriptPatternPairs[] =
53 "profile.content_settings.exceptions.mixed_script";
54 const char kContentSettingsMediaStreamPatternPairs[] =
55 "profile.content_settings.exceptions.media_stream";
56 const char kContentSettingsMediaStreamMicPatternPairs[] =
57 "profile.content_settings.exceptions.media_stream_mic";
58 const char kContentSettingsMediaStreamCameraPatternPairs[] =
59 "profile.content_settings.exceptions.media_stream_camera";
60 const char kContentSettingsProtocolHandlersPatternPairs[] =
61 "profile.content_settings.exceptions.protocol_handlers";
62 const char kContentSettingsPpapiBrokerPatternPairs[] =
63 "profile.content_settings.exceptions.ppapi_broker";
64 const char kContentSettingsAutomaticDownloadsPatternPairs[] =
65 "profile.content_settings.exceptions.automatic_downloads";
66 const char kContentSettingsMidiSysexPatternPairs[] =
67 "profile.content_settings.exceptions.midi_sysex";
68 const char kContentSettingsPushMessagingPatternPairs[] =
69 "profile.content_settings.exceptions.push_messaging";
70 const char kContentSettingsSSLCertDecisionsPatternPairs[] =
71 "profile.content_settings.exceptions.ssl_cert_decisions";
72 #if defined(OS_WIN)
73 const char kContentSettingsMetroSwitchToDesktopPatternPairs[] =
74 "profile.content_settings.exceptions.metro_switch_to_desktop";
75 #elif defined(OS_ANDROID) || defined(OS_CHROMEOS)
76 const char kContentSettingsProtectedMediaIdentifierPatternPairs[] =
77 "profile.content_settings.exceptions.protected_media_identifier";
78 #endif
79 const char kContentSettingsAppBannerPatternPairs[] =
80 "profile.content_settings.exceptions.app_banner";
81
82 // Whether the patern pairs have been migrated from the deprecated aggregate
83 // preference |kContentSettingsPatternPairs| to the separate preferences
84 // |kContentSettings<type>PatternPairs|.
85 const char kContentSettingsPatternPairsMigrated[] =
86 "profile.content_settings_exceptions_migrated";
87
31 // Preferences that are exclusively used to store managed values for default 88 // Preferences that are exclusively used to store managed values for default
32 // content settings. 89 // content settings.
33 const char kManagedDefaultCookiesSetting[] = 90 const char kManagedDefaultCookiesSetting[] =
34 "profile.managed_default_content_settings.cookies"; 91 "profile.managed_default_content_settings.cookies";
35 const char kManagedDefaultImagesSetting[] = 92 const char kManagedDefaultImagesSetting[] =
36 "profile.managed_default_content_settings.images"; 93 "profile.managed_default_content_settings.images";
37 const char kManagedDefaultJavaScriptSetting[] = 94 const char kManagedDefaultJavaScriptSetting[] =
38 "profile.managed_default_content_settings.javascript"; 95 "profile.managed_default_content_settings.javascript";
39 const char kManagedDefaultPluginsSetting[] = 96 const char kManagedDefaultPluginsSetting[] =
40 "profile.managed_default_content_settings.plugins"; 97 "profile.managed_default_content_settings.plugins";
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 const char kManagedPopupsBlockedForUrls[] = 129 const char kManagedPopupsBlockedForUrls[] =
73 "profile.managed_popups_blocked_for_urls"; 130 "profile.managed_popups_blocked_for_urls";
74 const char kManagedNotificationsAllowedForUrls[] = 131 const char kManagedNotificationsAllowedForUrls[] =
75 "profile.managed_notifications_allowed_for_urls"; 132 "profile.managed_notifications_allowed_for_urls";
76 const char kManagedNotificationsBlockedForUrls[] = 133 const char kManagedNotificationsBlockedForUrls[] =
77 "profile.managed_notifications_blocked_for_urls"; 134 "profile.managed_notifications_blocked_for_urls";
78 const char kManagedAutoSelectCertificateForUrls[] = 135 const char kManagedAutoSelectCertificateForUrls[] =
79 "profile.managed_auto_select_certificate_for_urls"; 136 "profile.managed_auto_select_certificate_for_urls";
80 137
81 } // namespace prefs 138 } // namespace prefs
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698