| OLD | NEW |
| 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 | 8 |
| 9 namespace prefs { | 9 namespace prefs { |
| 10 | 10 |
| (...skipping 731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 742 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; | 742 const char kPluginsEnabledPlugins[] = "plugins.plugins_enabled"; |
| 743 | 743 |
| 744 // When first shipped, the pdf plugin will be disabled by default. When we | 744 // When first shipped, the pdf plugin will be disabled by default. When we |
| 745 // enable it by default, we'll want to do so only once. | 745 // enable it by default, we'll want to do so only once. |
| 746 const char kPluginsEnabledInternalPDF[] = "plugins.enabled_internal_pdf3"; | 746 const char kPluginsEnabledInternalPDF[] = "plugins.enabled_internal_pdf3"; |
| 747 | 747 |
| 748 // When first shipped, the nacl plugin will be disabled by default. When we | 748 // When first shipped, the nacl plugin will be disabled by default. When we |
| 749 // enable it by default, we'll want to do so only once. | 749 // enable it by default, we'll want to do so only once. |
| 750 const char kPluginsEnabledNaCl[] = "plugins.enabled_nacl"; | 750 const char kPluginsEnabledNaCl[] = "plugins.enabled_nacl"; |
| 751 | 751 |
| 752 #if !defined(OS_ANDROID) |
| 752 const char kPluginsShowSetReaderDefaultInfobar[] = | 753 const char kPluginsShowSetReaderDefaultInfobar[] = |
| 753 "plugins.show_set_reader_default"; | 754 "plugins.show_set_reader_default"; |
| 754 | 755 |
| 755 // Whether about:plugins is shown in the details mode or not. | 756 // Whether about:plugins is shown in the details mode or not. |
| 756 const char kPluginsShowDetails[] = "plugins.show_details"; | 757 const char kPluginsShowDetails[] = "plugins.show_details"; |
| 758 #endif |
| 757 | 759 |
| 758 // Boolean that indicates whether outdated plugins are allowed or not. | 760 // Boolean that indicates whether outdated plugins are allowed or not. |
| 759 const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; | 761 const char kPluginsAllowOutdated[] = "plugins.allow_outdated"; |
| 760 | 762 |
| 761 // Boolean that indicates whether plugins that require authorization should | 763 // Boolean that indicates whether plugins that require authorization should |
| 762 // be always allowed or not. | 764 // be always allowed or not. |
| 763 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; | 765 const char kPluginsAlwaysAuthorize[] = "plugins.always_authorize"; |
| 764 | 766 |
| 765 // Boolean that indicates whether we should check if we are the default browser | 767 // Boolean that indicates whether we should check if we are the default browser |
| 766 // on start-up. | 768 // on start-up. |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 811 // kContentSettingsVersion. | 813 // kContentSettingsVersion. |
| 812 const char kContentSettingsPatterns[] = "profile.content_settings.patterns"; | 814 const char kContentSettingsPatterns[] = "profile.content_settings.patterns"; |
| 813 | 815 |
| 814 const char kContentSettingsPatternPairs[] = | 816 const char kContentSettingsPatternPairs[] = |
| 815 "profile.content_settings.pattern_pairs"; | 817 "profile.content_settings.pattern_pairs"; |
| 816 | 818 |
| 817 // Version of the content settings whitelist. | 819 // Version of the content settings whitelist. |
| 818 const char kContentSettingsDefaultWhitelistVersion[] = | 820 const char kContentSettingsDefaultWhitelistVersion[] = |
| 819 "profile.content_settings.whitelist_version"; | 821 "profile.content_settings.whitelist_version"; |
| 820 | 822 |
| 823 #if !defined(OS_ANDROID) |
| 821 // Which plugins have been whitelisted manually by the user. | 824 // Which plugins have been whitelisted manually by the user. |
| 822 const char kContentSettingsPluginWhitelist[] = | 825 const char kContentSettingsPluginWhitelist[] = |
| 823 "profile.content_settings.plugin_whitelist"; | 826 "profile.content_settings.plugin_whitelist"; |
| 827 #endif |
| 824 | 828 |
| 825 // Boolean that is true if we should unconditionally block third-party cookies, | 829 // Boolean that is true if we should unconditionally block third-party cookies, |
| 826 // regardless of other content settings. | 830 // regardless of other content settings. |
| 827 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; | 831 const char kBlockThirdPartyCookies[] = "profile.block_third_party_cookies"; |
| 828 | 832 |
| 829 // Boolean that is true when all locally stored site data (e.g. cookies, local | 833 // Boolean that is true when all locally stored site data (e.g. cookies, local |
| 830 // storage, etc..) should be deleted on exit. | 834 // storage, etc..) should be deleted on exit. |
| 831 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit"; | 835 const char kClearSiteDataOnExit[] = "profile.clear_site_data_on_exit"; |
| 832 | 836 |
| 833 // Double that indicates the default zoom level. | 837 // Double that indicates the default zoom level. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 857 | 861 |
| 858 // Boolean option set to true on the first run. Non-persistent. | 862 // Boolean option set to true on the first run. Non-persistent. |
| 859 const char kAutofillPersonalDataManagerFirstRun[] = "autofill.pdm.first_run"; | 863 const char kAutofillPersonalDataManagerFirstRun[] = "autofill.pdm.first_run"; |
| 860 | 864 |
| 861 // Modifying bookmarks is completely disabled when this is set to false. | 865 // Modifying bookmarks is completely disabled when this is set to false. |
| 862 const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled"; | 866 const char kEditBookmarksEnabled[] = "bookmarks.editing_enabled"; |
| 863 | 867 |
| 864 // Boolean that is true when the translate feature is enabled. | 868 // Boolean that is true when the translate feature is enabled. |
| 865 const char kEnableTranslate[] = "translate.enabled"; | 869 const char kEnableTranslate[] = "translate.enabled"; |
| 866 | 870 |
| 871 #if !defined(OS_ANDROID) |
| 867 const char kPinnedTabs[] = "pinned_tabs"; | 872 const char kPinnedTabs[] = "pinned_tabs"; |
| 873 #endif |
| 868 | 874 |
| 869 // Boolean that is true when HTTP throttling is enabled. | 875 // Boolean that is true when HTTP throttling is enabled. |
| 870 const char kHttpThrottlingEnabled[] = "http_throttling.enabled"; | 876 const char kHttpThrottlingEnabled[] = "http_throttling.enabled"; |
| 871 | 877 |
| 872 // Integer containing the default Geolocation content setting. | 878 // Integer containing the default Geolocation content setting. |
| 873 const char kGeolocationDefaultContentSetting[] = | 879 const char kGeolocationDefaultContentSetting[] = |
| 874 "geolocation.default_content_setting"; | 880 "geolocation.default_content_setting"; |
| 875 | 881 |
| 876 // Dictionary that maps [frame, toplevel] to their Geolocation content setting. | 882 // Dictionary that maps [frame, toplevel] to their Geolocation content setting. |
| 877 const char kGeolocationContentSettings[] = "geolocation.content_settings"; | 883 const char kGeolocationContentSettings[] = "geolocation.content_settings"; |
| (...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1320 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist"; | 1326 const char kNtpMostVisitedURLsBlacklist[] = "ntp.most_visited_blacklist"; |
| 1321 | 1327 |
| 1322 // The URLs that have been pinned to the Most Visited section of the New Tab | 1328 // The URLs that have been pinned to the Most Visited section of the New Tab |
| 1323 // Page. | 1329 // Page. |
| 1324 const char kNtpMostVisitedPinnedURLs[] = "ntp.pinned_urls"; | 1330 const char kNtpMostVisitedPinnedURLs[] = "ntp.pinned_urls"; |
| 1325 | 1331 |
| 1326 // Data downloaded from promo resource pages (JSON, RSS) to be used to | 1332 // Data downloaded from promo resource pages (JSON, RSS) to be used to |
| 1327 // dynamically deliver data for the new tab page. | 1333 // dynamically deliver data for the new tab page. |
| 1328 const char kNtpPromoResourceCache[] = "ntp.promo_resource_cache"; | 1334 const char kNtpPromoResourceCache[] = "ntp.promo_resource_cache"; |
| 1329 | 1335 |
| 1336 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) |
| 1330 // Last time of update of promo_resource_cache. | 1337 // Last time of update of promo_resource_cache. |
| 1331 const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update"; | 1338 const char kNtpPromoResourceCacheUpdate[] = "ntp.promo_resource_cache_update"; |
| 1339 #endif |
| 1332 | 1340 |
| 1333 // Is user logged into G+ (used for G+ extension promo). | 1341 // Is user logged into G+ (used for G+ extension promo). |
| 1334 const char kNtpPromoIsLoggedInToPlus[] = "ntp.promo_is_logged_in_to_plus"; | 1342 const char kNtpPromoIsLoggedInToPlus[] = "ntp.promo_is_logged_in_to_plus"; |
| 1335 | 1343 |
| 1336 // Bit mask used to decide when to show the NTP Promo. | 1344 // Bit mask used to decide when to show the NTP Promo. |
| 1337 const char kNtpPromoFeatureMask[] = "ntp.promo_feature_mask"; | 1345 const char kNtpPromoFeatureMask[] = "ntp.promo_feature_mask"; |
| 1338 | 1346 |
| 1339 // Serves promo resources for the NTP. | 1347 // Serves promo resources for the NTP. |
| 1340 const char kNtpPromoResourceServer[] = "ntp.web_resource_server"; | 1348 const char kNtpPromoResourceServer[] = "ntp.web_resource_server"; |
| 1341 | 1349 |
| 1342 // Serves tips for the NTP. | 1350 // Serves tips for the NTP. |
| 1343 const char kNtpTipsResourceServer[] = "ntp.tips_resource_server"; | 1351 const char kNtpTipsResourceServer[] = "ntp.tips_resource_server"; |
| 1344 | 1352 |
| 1345 // Serves dates to determine display of elements on the NTP. | 1353 // Serves dates to determine display of elements on the NTP. |
| 1346 const char kNtpDateResourceServer[] = "ntp.date_resource_server"; | 1354 const char kNtpDateResourceServer[] = "ntp.date_resource_server"; |
| 1347 | 1355 |
| 1348 // Which bookmarks folder should be visible on the new tab page v4. | 1356 // Which bookmarks folder should be visible on the new tab page v4. |
| 1349 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder"; | 1357 const char kNtpShownBookmarksFolder[] = "ntp.shown_bookmarks_folder"; |
| 1350 | 1358 |
| 1351 // Which page should be visible on the new tab page v4 | 1359 // Which page should be visible on the new tab page v4 |
| 1352 const char kNtpShownPage[] = "ntp.shown_page"; | 1360 const char kNtpShownPage[] = "ntp.shown_page"; |
| 1353 | 1361 |
| 1362 #if defined(ENABLE_PROMO_RESOURCE_SERVICE) |
| 1354 // Dates between which the NTP should show a custom logo rather than the | 1363 // Dates between which the NTP should show a custom logo rather than the |
| 1355 // standard one. | 1364 // standard one. |
| 1356 const char kNtpCustomLogoStart[] = "ntp.alt_logo_start"; | 1365 const char kNtpCustomLogoStart[] = "ntp.alt_logo_start"; |
| 1357 const char kNtpCustomLogoEnd[] = "ntp.alt_logo_end"; | 1366 const char kNtpCustomLogoEnd[] = "ntp.alt_logo_end"; |
| 1367 #endif |
| 1358 | 1368 |
| 1359 // The promo resource service version number. | 1369 // The promo resource service version number. |
| 1360 const char kNtpPromoVersion[] = "ntp.promo_version"; | 1370 const char kNtpPromoVersion[] = "ntp.promo_version"; |
| 1361 | 1371 |
| 1362 // The last locale the promo was fetched for. | 1372 // The last locale the promo was fetched for. |
| 1363 const char kNtpPromoLocale[] = "ntp.promo_locale"; | 1373 const char kNtpPromoLocale[] = "ntp.promo_locale"; |
| 1364 | 1374 |
| 1365 // Whether promo should be shown to Dev builds, Beta and Dev, or all builds. | 1375 // Whether promo should be shown to Dev builds, Beta and Dev, or all builds. |
| 1366 const char kNtpPromoBuild[] = "ntp.promo_build"; | 1376 const char kNtpPromoBuild[] = "ntp.promo_build"; |
| 1367 | 1377 |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1572 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height"; | 1582 const char kCloudPrintDialogHeight[] = "cloud_print.dialog_size.height"; |
| 1573 const char kCloudPrintSigninDialogWidth[] = | 1583 const char kCloudPrintSigninDialogWidth[] = |
| 1574 "cloud_print.signin_dialog_size.width"; | 1584 "cloud_print.signin_dialog_size.width"; |
| 1575 const char kCloudPrintSigninDialogHeight[] = | 1585 const char kCloudPrintSigninDialogHeight[] = |
| 1576 "cloud_print.signin_dialog_size.height"; | 1586 "cloud_print.signin_dialog_size.height"; |
| 1577 | 1587 |
| 1578 // The list of BackgroundContents that should be loaded when the browser | 1588 // The list of BackgroundContents that should be loaded when the browser |
| 1579 // launches. | 1589 // launches. |
| 1580 const char kRegisteredBackgroundContents[] = "background_contents.registered"; | 1590 const char kRegisteredBackgroundContents[] = "background_contents.registered"; |
| 1581 | 1591 |
| 1592 #if !defined(OS_ANDROID) |
| 1582 // An int that stores how often we've shown the "Chrome is configured to | 1593 // An int that stores how often we've shown the "Chrome is configured to |
| 1583 // auto-launch" infobar. | 1594 // auto-launch" infobar. |
| 1584 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar"; | 1595 const char kShownAutoLaunchInfobar[] = "browser.shown_autolaunch_infobar"; |
| 1596 #endif |
| 1585 | 1597 |
| 1586 // String that lists supported HTTP authentication schemes. | 1598 // String that lists supported HTTP authentication schemes. |
| 1587 const char kAuthSchemes[] = "auth.schemes"; | 1599 const char kAuthSchemes[] = "auth.schemes"; |
| 1588 | 1600 |
| 1589 // Boolean that specifies whether to disable CNAME lookups when generating | 1601 // Boolean that specifies whether to disable CNAME lookups when generating |
| 1590 // Kerberos SPN. | 1602 // Kerberos SPN. |
| 1591 const char kDisableAuthNegotiateCnameLookup[] = | 1603 const char kDisableAuthNegotiateCnameLookup[] = |
| 1592 "auth.disable_negotiate_cname_lookup"; | 1604 "auth.disable_negotiate_cname_lookup"; |
| 1593 // Boolean that specifies whether to include the port in a generated Kerberos | 1605 // Boolean that specifies whether to include the port in a generated Kerberos |
| 1594 // SPN. | 1606 // SPN. |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1823 const char kRailBreakProportion[] = | 1835 const char kRailBreakProportion[] = |
| 1824 "gesture.rail_break_proportion"; | 1836 "gesture.rail_break_proportion"; |
| 1825 const char kRailStartProportion[] = | 1837 const char kRailStartProportion[] = |
| 1826 "gesture.rail_start_proportion"; | 1838 "gesture.rail_start_proportion"; |
| 1827 #endif | 1839 #endif |
| 1828 | 1840 |
| 1829 // Indicates whether the browser is in managed mode. | 1841 // Indicates whether the browser is in managed mode. |
| 1830 const char kInManagedMode[] = "managed_mode"; | 1842 const char kInManagedMode[] = "managed_mode"; |
| 1831 | 1843 |
| 1832 } // namespace prefs | 1844 } // namespace prefs |
| OLD | NEW |