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

Side by Side Diff: chrome/common/pref_names.cc

Issue 670953006: Componentize HostContentSettingsMap and content settings providers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: win64 suppress warnings Created 6 years, 1 month 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
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "chrome/common/pref_names.h" 5 #include "chrome/common/pref_names.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "chrome/common/pref_font_webkit_names.h" 8 #include "chrome/common/pref_font_webkit_names.h"
9 9
10 namespace prefs { 10 namespace prefs {
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after
984 // asking the user to set up automatic updates when Keystone promotion is 984 // asking the user to set up automatic updates when Keystone promotion is
985 // required. 985 // required.
986 const char kShowUpdatePromotionInfoBar[] = 986 const char kShowUpdatePromotionInfoBar[] =
987 "browser.show_update_promotion_info_bar"; 987 "browser.show_update_promotion_info_bar";
988 #endif 988 #endif
989 989
990 // Boolean that is false if we should show window manager decorations. If 990 // Boolean that is false if we should show window manager decorations. If
991 // true, we draw a custom chrome frame (thicker title bar and blue border). 991 // true, we draw a custom chrome frame (thicker title bar and blue border).
992 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame"; 992 const char kUseCustomChromeFrame[] = "browser.custom_chrome_frame";
993 993
994 // Dictionary of content settings applied to all hosts by default.
995 const char kDefaultContentSettings[] = "profile.default_content_settings";
996
997 // Dictionary of content settings that can globally disallow all hosts by
998 // default. If a value is set, it means the setting is globally disallowed.
999 // If a value is not set, it means the setting is allowed.
1000 const char kOverrideContentSettings[] = "profile.override_content_settings";
1001
1002 // Version of the pattern format used to define content settings.
1003 const char kContentSettingsVersion[] = "profile.content_settings.pref_version";
1004
1005 // Patterns for mapping origins to origin related settings. Default settings
1006 // will be applied to origins that don't match any of the patterns. The pattern
1007 // format used is defined by kContentSettingsVersion.
1008 const char kContentSettingsPatternPairs[] =
1009 "profile.content_settings.pattern_pairs";
1010
1011 #if !defined(OS_ANDROID) 994 #if !defined(OS_ANDROID)
1012 // Which plugins have been whitelisted manually by the user. 995 // Which plugins have been whitelisted manually by the user.
1013 const char kContentSettingsPluginWhitelist[] = 996 const char kContentSettingsPluginWhitelist[] =
1014 "profile.content_settings.plugin_whitelist"; 997 "profile.content_settings.plugin_whitelist";
1015 #endif 998 #endif
1016 999
1017 // Boolean that is true if we should unconditionally block third-party cookies, 1000 // Boolean that is true if we should unconditionally block third-party cookies,
1018 // regardless of other content settings. 1001 // regardless of other content settings.
1019 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; 1002 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies";
1020 1003
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1510 1493
1511 // Keys used for MAC handling of SafeBrowsing requests. 1494 // Keys used for MAC handling of SafeBrowsing requests.
1512 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key"; 1495 const char kSafeBrowsingClientKey[] = "safe_browsing.client_key";
1513 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key"; 1496 const char kSafeBrowsingWrappedKey[] = "safe_browsing.wrapped_key";
1514 1497
1515 // Integer that specifies the index of the tab the user was on when they 1498 // Integer that specifies the index of the tab the user was on when they
1516 // last visited the options window. 1499 // last visited the options window.
1517 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index"; 1500 const char kOptionsWindowLastTabIndex[] = "options_window.last_tab_index";
1518 1501
1519 // Integer that specifies the index of the tab the user was on when they 1502 // Integer that specifies the index of the tab the user was on when they
1520 // last visited the content settings window.
1521 const char kContentSettingsWindowLastTabIndex[] =
1522 "content_settings_window.last_tab_index";
1523
1524 // Integer that specifies the index of the tab the user was on when they
1525 // last visited the Certificate Manager window. 1503 // last visited the Certificate Manager window.
1526 const char kCertificateManagerWindowLastTabIndex[] = 1504 const char kCertificateManagerWindowLastTabIndex[] =
1527 "certificate_manager_window.last_tab_index"; 1505 "certificate_manager_window.last_tab_index";
1528 1506
1529 // Integer that specifies if the first run bubble should be shown. 1507 // Integer that specifies if the first run bubble should be shown.
1530 // This preference is only registered by the first-run procedure. 1508 // This preference is only registered by the first-run procedure.
1531 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option"; 1509 const char kShowFirstRunBubbleOption[] = "show-first-run-bubble-option";
1532 1510
1533 // String containing the last known intranet redirect URL, if any. See 1511 // String containing the last known intranet redirect URL, if any. See
1534 // intranet_redirect_detector.h for more information. 1512 // intranet_redirect_detector.h for more information.
(...skipping 498 matching lines...) Expand 10 before | Expand all | Expand 10 after
2033 // List of printers settings. 2011 // List of printers settings.
2034 extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers"; 2012 extern const char kCloudPrintPrinters[] = "cloud_print.user_settings.printers";
2035 // A boolean indicating whether submitting jobs to Google Cloud Print is 2013 // A boolean indicating whether submitting jobs to Google Cloud Print is
2036 // blocked by policy. 2014 // blocked by policy.
2037 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled"; 2015 const char kCloudPrintSubmitEnabled[] = "cloud_print.submit_enabled";
2038 2016
2039 // Preference to store proxy settings. 2017 // Preference to store proxy settings.
2040 const char kProxy[] = "proxy"; 2018 const char kProxy[] = "proxy";
2041 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy"; 2019 const char kMaxConnectionsPerProxy[] = "net.max_connections_per_proxy";
2042 2020
2043 // Preferences that are exclusively used to store managed values for default
2044 // content settings.
2045 const char kManagedDefaultCookiesSetting[] =
2046 "profile.managed_default_content_settings.cookies";
2047 const char kManagedDefaultImagesSetting[] =
2048 "profile.managed_default_content_settings.images";
2049 const char kManagedDefaultJavaScriptSetting[] =
2050 "profile.managed_default_content_settings.javascript";
2051 const char kManagedDefaultPluginsSetting[] =
2052 "profile.managed_default_content_settings.plugins";
2053 const char kManagedDefaultPopupsSetting[] =
2054 "profile.managed_default_content_settings.popups";
2055 const char kManagedDefaultGeolocationSetting[] =
2056 "profile.managed_default_content_settings.geolocation";
2057 const char kManagedDefaultNotificationsSetting[] =
2058 "profile.managed_default_content_settings.notifications";
2059 const char kManagedDefaultMediaStreamSetting[] =
2060 "profile.managed_default_content_settings.media_stream";
2061
2062 // Preferences that are exclusively used to store managed
2063 // content settings patterns.
2064 const char kManagedCookiesAllowedForUrls[] =
2065 "profile.managed_cookies_allowed_for_urls";
2066 const char kManagedCookiesBlockedForUrls[] =
2067 "profile.managed_cookies_blocked_for_urls";
2068 const char kManagedCookiesSessionOnlyForUrls[] =
2069 "profile.managed_cookies_sessiononly_for_urls";
2070 const char kManagedImagesAllowedForUrls[] =
2071 "profile.managed_images_allowed_for_urls";
2072 const char kManagedImagesBlockedForUrls[] =
2073 "profile.managed_images_blocked_for_urls";
2074 const char kManagedJavaScriptAllowedForUrls[] =
2075 "profile.managed_javascript_allowed_for_urls";
2076 const char kManagedJavaScriptBlockedForUrls[] =
2077 "profile.managed_javascript_blocked_for_urls";
2078 const char kManagedPluginsAllowedForUrls[] =
2079 "profile.managed_plugins_allowed_for_urls";
2080 const char kManagedPluginsBlockedForUrls[] =
2081 "profile.managed_plugins_blocked_for_urls";
2082 const char kManagedPopupsAllowedForUrls[] =
2083 "profile.managed_popups_allowed_for_urls";
2084 const char kManagedPopupsBlockedForUrls[] =
2085 "profile.managed_popups_blocked_for_urls";
2086 const char kManagedNotificationsAllowedForUrls[] =
2087 "profile.managed_notifications_allowed_for_urls";
2088 const char kManagedNotificationsBlockedForUrls[] =
2089 "profile.managed_notifications_blocked_for_urls";
2090 const char kManagedAutoSelectCertificateForUrls[] =
2091 "profile.managed_auto_select_certificate_for_urls";
2092
2093 #if defined(OS_MACOSX) 2021 #if defined(OS_MACOSX)
2094 // Set to true if the user removed our login item so we should not create a new 2022 // Set to true if the user removed our login item so we should not create a new
2095 // one when uninstalling background apps. 2023 // one when uninstalling background apps.
2096 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item"; 2024 const char kUserRemovedLoginItem[] = "background_mode.user_removed_login_item";
2097 2025
2098 // Set to true if Chrome already created a login item, so there's no need to 2026 // Set to true if Chrome already created a login item, so there's no need to
2099 // create another one. 2027 // create another one.
2100 const char kChromeCreatedLoginItem[] = 2028 const char kChromeCreatedLoginItem[] =
2101 "background_mode.chrome_created_login_item"; 2029 "background_mode.chrome_created_login_item";
2102 2030
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after
2338 // Whether Guest Mode is enabled within the browser. 2266 // Whether Guest Mode is enabled within the browser.
2339 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled"; 2267 const char kBrowserGuestModeEnabled[] = "profile.browser_guest_enabled";
2340 2268
2341 // Whether Adding a new Person is enabled within the user manager. 2269 // Whether Adding a new Person is enabled within the user manager.
2342 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled"; 2270 const char kBrowserAddPersonEnabled[] = "profile.add_person_enabled";
2343 2271
2344 // A dictionary that maps user id to hardlock state. 2272 // A dictionary that maps user id to hardlock state.
2345 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state"; 2273 const char kEasyUnlockHardlockState[] = "easy_unlock.hardlock_state";
2346 2274
2347 } // namespace prefs 2275 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | chrome/test/base/testing_profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698