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"
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 const char kDefaultContentSettings
[] = "profile.default_content_settings";
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.
28 // If a value is not set, it means the setting is allowed.
29 const char kOverrideContentSettings
[] = "profile.override_content_settings";
31 // Preferences that are exclusively used to store managed values for default
33 const char kManagedDefaultCookiesSetting
[] =
34 "profile.managed_default_content_settings.cookies";
35 const char kManagedDefaultImagesSetting
[] =
36 "profile.managed_default_content_settings.images";
37 const char kManagedDefaultJavaScriptSetting
[] =
38 "profile.managed_default_content_settings.javascript";
39 const char kManagedDefaultPluginsSetting
[] =
40 "profile.managed_default_content_settings.plugins";
41 const char kManagedDefaultPopupsSetting
[] =
42 "profile.managed_default_content_settings.popups";
43 const char kManagedDefaultGeolocationSetting
[] =
44 "profile.managed_default_content_settings.geolocation";
45 const char kManagedDefaultNotificationsSetting
[] =
46 "profile.managed_default_content_settings.notifications";
47 const char kManagedDefaultMediaStreamSetting
[] =
48 "profile.managed_default_content_settings.media_stream";
50 // Preferences that are exclusively used to store managed
51 // content settings patterns.
52 const char kManagedCookiesAllowedForUrls
[] =
53 "profile.managed_cookies_allowed_for_urls";
54 const char kManagedCookiesBlockedForUrls
[] =
55 "profile.managed_cookies_blocked_for_urls";
56 const char kManagedCookiesSessionOnlyForUrls
[] =
57 "profile.managed_cookies_sessiononly_for_urls";
58 const char kManagedImagesAllowedForUrls
[] =
59 "profile.managed_images_allowed_for_urls";
60 const char kManagedImagesBlockedForUrls
[] =
61 "profile.managed_images_blocked_for_urls";
62 const char kManagedJavaScriptAllowedForUrls
[] =
63 "profile.managed_javascript_allowed_for_urls";
64 const char kManagedJavaScriptBlockedForUrls
[] =
65 "profile.managed_javascript_blocked_for_urls";
66 const char kManagedPluginsAllowedForUrls
[] =
67 "profile.managed_plugins_allowed_for_urls";
68 const char kManagedPluginsBlockedForUrls
[] =
69 "profile.managed_plugins_blocked_for_urls";
70 const char kManagedPopupsAllowedForUrls
[] =
71 "profile.managed_popups_allowed_for_urls";
72 const char kManagedPopupsBlockedForUrls
[] =
73 "profile.managed_popups_blocked_for_urls";
74 const char kManagedNotificationsAllowedForUrls
[] =
75 "profile.managed_notifications_allowed_for_urls";
76 const char kManagedNotificationsBlockedForUrls
[] =
77 "profile.managed_notifications_blocked_for_urls";
78 const char kManagedAutoSelectCertificateForUrls
[] =
79 "profile.managed_auto_select_certificate_for_urls";