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 358 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
369 // 2 - block all cookies | 369 // 2 - block all cookies |
370 const char kCookieBehavior[] = "security.cookie_behavior"; | 370 const char kCookieBehavior[] = "security.cookie_behavior"; |
371 | 371 |
372 // Boolean which specifies whether we should ask the user if we should download | 372 // Boolean which specifies whether we should ask the user if we should download |
373 // a file (true) or just download it automatically. | 373 // a file (true) or just download it automatically. |
374 const char kPromptForDownload[] = "download.prompt_for_download"; | 374 const char kPromptForDownload[] = "download.prompt_for_download"; |
375 | 375 |
376 // A boolean pref set to true if we're using Link Doctor error pages. | 376 // A boolean pref set to true if we're using Link Doctor error pages. |
377 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; | 377 const char kAlternateErrorPagesEnabled[] = "alternate_error_pages.enabled"; |
378 | 378 |
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 | 379 // 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. | 380 // next startup, based on what was actually needed during this startup. |
385 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; | 381 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; |
386 | 382 |
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 | 383 // 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 | 384 // sub-resource hostnames (and expected latency benefits from pre-resolving, or |
393 // preconnecting to, such sub-resource hostnames). | 385 // preconnecting to, such sub-resource hostnames). |
394 // This list is adaptively grown and pruned. | 386 // This list is adaptively grown and pruned. |
395 const char kDnsPrefetchingHostReferralList[] = | 387 const char kDnsPrefetchingHostReferralList[] = |
396 "dns_prefetching.host_referral_list"; | 388 "dns_prefetching.host_referral_list"; |
397 | 389 |
398 // Disables the SPDY protocol. | 390 // Disables the SPDY protocol. |
399 const char kDisableSpdy[] = "spdy.disabled"; | 391 const char kDisableSpdy[] = "spdy.disabled"; |
400 | 392 |
(...skipping 13 matching lines...) Expand all Loading... |
414 // Last time that a check for cloud policy management was done. This time is | 406 // 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. | 407 // 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. | 408 // Instead the cloud policy registration is retried at least 1 or 3 days later. |
417 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; | 409 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; |
418 #endif | 410 #endif |
419 | 411 |
420 // Prefix URL for the experimental Instant ZeroSuggest provider. | 412 // Prefix URL for the experimental Instant ZeroSuggest provider. |
421 const char kInstantUIZeroSuggestUrlPrefix[] = | 413 const char kInstantUIZeroSuggestUrlPrefix[] = |
422 "instant_ui.zero_suggest_url_prefix"; | 414 "instant_ui.zero_suggest_url_prefix"; |
423 | 415 |
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. | 416 // A boolean pref set to true if prediction of network actions is allowed. |
435 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering | 417 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering |
436 // of web pages, and resource prefetching. | 418 // of web pages, and resource prefetching. |
437 // NOTE: The "dns_prefetching.enabled" value is used so that historical user | 419 // NOTE: The "dns_prefetching.enabled" value is used so that historical user |
438 // preferences are not lost. | 420 // preferences are not lost. |
439 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions | 421 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions |
440 // is functioning as per crbug.com/334602. | 422 // is functioning as per crbug.com/334602. |
441 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; | 423 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; |
442 | 424 |
443 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows | 425 // 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). | 2274 // (name and a list of clients that registered the whitelist). |
2293 const char kRegisteredSupervisedUserWhitelists[] = | 2275 const char kRegisteredSupervisedUserWhitelists[] = |
2294 "supervised_users.whitelists"; | 2276 "supervised_users.whitelists"; |
2295 | 2277 |
2296 #if defined(ENABLE_EXTENSIONS) | 2278 #if defined(ENABLE_EXTENSIONS) |
2297 // Policy that indicates how to handle animated images. | 2279 // Policy that indicates how to handle animated images. |
2298 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; | 2280 const char kAnimationPolicy[] = "settings.a11y.animation_policy"; |
2299 #endif | 2281 #endif |
2300 | 2282 |
2301 } // namespace prefs | 2283 } // namespace prefs |
OLD | NEW |