| 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 #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 343 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // "false" - opt-out (disabled) | 354 // "false" - opt-out (disabled) |
| 355 // "" (empty string) - undecided | 355 // "" (empty string) - undecided |
| 356 // "true" - opt-in (enabled) | 356 // "true" - opt-in (enabled) |
| 357 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; | 357 const char kContextualSearchEnabled[] = "search.contextual_search_enabled"; |
| 358 #endif | 358 #endif |
| 359 | 359 |
| 360 // Boolean that indicates whether the browser should put up a confirmation | 360 // Boolean that indicates whether the browser should put up a confirmation |
| 361 // window when the user is attempting to quit. Mac only. | 361 // window when the user is attempting to quit. Mac only. |
| 362 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; | 362 const char kConfirmToQuitEnabled[] = "browser.confirm_to_quit"; |
| 363 | 363 |
| 364 // OBSOLETE. Enum that specifies whether to enforce a third-party cookie | |
| 365 // blocking policy. This has been superseded by kDefaultContentSettings + | |
| 366 // kBlockThirdPartyCookies. | |
| 367 // 0 - allow all cookies. | |
| 368 // 1 - block third-party cookies | |
| 369 // 2 - block all cookies | |
| 370 const char kCookieBehavior[] = "security.cookie_behavior"; | |
| 371 | |
| 372 // Boolean which specifies whether we should ask the user if we should download | 364 // Boolean which specifies whether we should ask the user if we should download |
| 373 // a file (true) or just download it automatically. | 365 // a file (true) or just download it automatically. |
| 374 const char kPromptForDownload[] = "download.prompt_for_download"; | 366 const char kPromptForDownload[] = "download.prompt_for_download"; |
| 375 | 367 |
| 376 // A boolean pref set to true if we're using Link Doctor error pages. | 368 // A boolean pref set to true if we're using Link Doctor error pages. |
| 377 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; | 369 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; |
| 378 | 370 |
| 379 // OBSOLETE: new pref now stored with user prefs instead of profile, as | |
| 380 // kDnsPrefetchingStartupList. | |
| 381 const char kDnsStartupPrefetchList[] = "StartupDNSPrefetchList"; | |
| 382 | |
| 383 // An adaptively identified list of domain names to be pre-fetched during the | 371 // An adaptively identified list of domain names to be pre-fetched during the |
| 384 // next startup, based on what was actually needed during this startup. | 372 // next startup, based on what was actually needed during this startup. |
| 385 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; | 373 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; |
| 386 | 374 |
| 387 // OBSOLETE: new pref now stored with user prefs instead of profile, as | |
| 388 // kDnsPrefetchingHostReferralList. | |
| 389 const char kDnsHostReferralList[] = "HostReferralList"; | |
| 390 | |
| 391 // A list of host names used to fetch web pages, and their commonly used | 375 // A list of host names used to fetch web pages, and their commonly used |
| 392 // sub-resource hostnames (and expected latency benefits from pre-resolving, or | 376 // sub-resource hostnames (and expected latency benefits from pre-resolving, or |
| 393 // preconnecting to, such sub-resource hostnames). | 377 // preconnecting to, such sub-resource hostnames). |
| 394 // This list is adaptively grown and pruned. | 378 // This list is adaptively grown and pruned. |
| 395 const char kDnsPrefetchingHostReferralList[] = | 379 const char kDnsPrefetchingHostReferralList[] = |
| 396 "dns_prefetching.host_referral_list"; | 380 "dns_prefetching.host_referral_list"; |
| 397 | 381 |
| 398 // Disables the SPDY protocol. | 382 // Disables the SPDY protocol. |
| 399 const char kDisableSpdy[] = "spdy.disabled"; | 383 const char kDisableSpdy[] = "spdy.disabled"; |
| 400 | 384 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 414 // Last time that a check for cloud policy management was done. This time is | 398 // Last time that a check for cloud policy management was done. This time is |
| 415 // recorded on Android so that retries aren't attempted on every startup. | 399 // recorded on Android so that retries aren't attempted on every startup. |
| 416 // Instead the cloud policy registration is retried at least 1 or 3 days later. | 400 // Instead the cloud policy registration is retried at least 1 or 3 days later. |
| 417 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; | 401 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; |
| 418 #endif | 402 #endif |
| 419 | 403 |
| 420 // Prefix URL for the experimental Instant ZeroSuggest provider. | 404 // Prefix URL for the experimental Instant ZeroSuggest provider. |
| 421 const char kInstantUIZeroSuggestUrlPrefix[] = | 405 const char kInstantUIZeroSuggestUrlPrefix[] = |
| 422 "instant_ui.zero_suggest_url_prefix"; | 406 "instant_ui.zero_suggest_url_prefix"; |
| 423 | 407 |
| 424 // Used to migrate preferences from local state to user preferences to | |
| 425 // enable multiple profiles. | |
| 426 // BITMASK with possible values (see browser_prefs.cc for enum): | |
| 427 // 0: No preferences migrated. | |
| 428 // 1: DNS preferences migrated: kDnsPrefetchingStartupList and HostReferralList | |
| 429 // 2: Browser window preferences migrated: kDevToolsSplitLocation and | |
| 430 // kBrowserWindowPlacement | |
| 431 const char kMultipleProfilePrefMigration[] = | |
| 432 "local_state.multiple_profile_prefs_version"; | |
| 433 | |
| 434 // A boolean pref set to true if prediction of network actions is allowed. | 408 // A boolean pref set to true if prediction of network actions is allowed. |
| 435 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering | 409 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering |
| 436 // of web pages, and resource prefetching. | 410 // of web pages, and resource prefetching. |
| 437 // NOTE: The "dns_prefetching.enabled" value is used so that historical user | 411 // NOTE: The "dns_prefetching.enabled" value is used so that historical user |
| 438 // preferences are not lost. | 412 // preferences are not lost. |
| 439 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions | 413 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions |
| 440 // is functioning as per crbug.com/334602. | 414 // is functioning as per crbug.com/334602. |
| 441 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; | 415 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; |
| 442 | 416 |
| 443 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows | 417 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows |
| (...skipping 1848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2292 // (name and a list of clients that registered the whitelist). | 2266 // (name and a list of clients that registered the whitelist). |
| 2293 const char kRegisteredSupervisedUserWhitelists[] = | 2267 const char kRegisteredSupervisedUserWhitelists[] = |
| 2294 "supervised_users.whitelists"; | 2268 "supervised_users.whitelists"; |
| 2295 | 2269 |
| 2296 #if defined(ENABLE_EXTENSIONS) | 2270 #if defined(ENABLE_EXTENSIONS) |
| 2297 // Policy that indicates how to handle animated images. | 2271 // Policy that indicates how to handle animated images. |
| 2298 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; | 2272 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; |
| 2299 #endif | 2273 #endif |
| 2300 | 2274 |
| 2301 } // namespace prefs | 2275 } // namespace prefs |
| OLD | NEW |