Chromium Code Reviews| 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/macros.h" | 7 #include "base/macros.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/common/pref_font_webkit_names.h" | 9 #include "chrome/common/pref_font_webkit_names.h" |
| 10 | 10 |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 426 // next startup, based on what was actually needed during this startup. | 426 // next startup, based on what was actually needed during this startup. |
| 427 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; | 427 const char kDnsPrefetchingStartupList[] = "dns_prefetching.startup_list"; |
| 428 | 428 |
| 429 // A list of host names used to fetch web pages, and their commonly used | 429 // A list of host names used to fetch web pages, and their commonly used |
| 430 // sub-resource hostnames (and expected latency benefits from pre-resolving, or | 430 // sub-resource hostnames (and expected latency benefits from pre-resolving, or |
| 431 // preconnecting to, such sub-resource hostnames). | 431 // preconnecting to, such sub-resource hostnames). |
| 432 // This list is adaptively grown and pruned. | 432 // This list is adaptively grown and pruned. |
| 433 const char kDnsPrefetchingHostReferralList[] = | 433 const char kDnsPrefetchingHostReferralList[] = |
| 434 "dns_prefetching.host_referral_list"; | 434 "dns_prefetching.host_referral_list"; |
| 435 | 435 |
| 436 // Disables the SPDY/3.1 protocol. | |
| 437 // DEPRECATED: SPDY/3.1 is not supported any more. | |
| 438 const char kDisableSpdy[] = "spdy.disabled"; | |
| 439 | |
| 440 // Prefs for persisting HttpServerProperties. | 436 // Prefs for persisting HttpServerProperties. |
| 441 const char kHttpServerProperties[] = "net.http_server_properties"; | 437 const char kHttpServerProperties[] = "net.http_server_properties"; |
| 442 | 438 |
| 443 #if defined(OS_ANDROID) | 439 #if defined(OS_ANDROID) |
| 444 // Last time that a check for cloud policy management was done. This time is | 440 // Last time that a check for cloud policy management was done. This time is |
| 445 // recorded on Android so that retries aren't attempted on every startup. | 441 // recorded on Android so that retries aren't attempted on every startup. |
| 446 // Instead the cloud policy registration is retried at least 1 or 3 days later. | 442 // Instead the cloud policy registration is retried at least 1 or 3 days later. |
| 447 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; | 443 const char kLastPolicyCheckTime[] = "policy.last_policy_check_time"; |
| 448 #endif | 444 #endif |
| 449 | 445 |
| 450 // Prefix URL for the experimental Instant ZeroSuggest provider. | 446 // Prefix URL for the experimental Instant ZeroSuggest provider. |
| 451 const char kInstantUIZeroSuggestUrlPrefix[] = | 447 const char kInstantUIZeroSuggestUrlPrefix[] = |
| 452 "instant_ui.zero_suggest_url_prefix"; | 448 "instant_ui.zero_suggest_url_prefix"; |
| 453 | 449 |
| 454 // A boolean pref set to true if prediction of network actions is allowed. | |
| 455 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering | |
| 456 // of web pages, and resource prefetching. | |
| 457 // NOTE: The "dns_prefetching.enabled" value is used so that historical user | |
| 458 // preferences are not lost. | |
| 459 // TODO(bnc): Remove kNetworkPredictionEnabled once kNetworkPredictionOptions | |
| 460 // is functioning as per crbug.com/334602. | |
|
gab
2016/07/22 16:44:33
Should crbug.com/334602 be listed in CL descriptio
Bence
2016/07/23 00:16:42
Done.
| |
| 461 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; | |
| 462 | |
| 463 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows | 450 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows |
| 464 // if prediction of network actions is allowed, depending on network type. | 451 // if prediction of network actions is allowed, depending on network type. |
| 465 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering | 452 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering |
| 466 // of web pages, and resource prefetching. | 453 // of web pages, and resource prefetching. |
| 467 // TODO(bnc): Implement this preference as per crbug.com/334602. | 454 // TODO(bnc): Implement this preference as per crbug.com/334602. |
| 468 const char kNetworkPredictionOptions[] = "net.network_prediction_options"; | 455 const char kNetworkPredictionOptions[] = "net.network_prediction_options"; |
| 469 | 456 |
| 470 // An integer representing the state of the default apps installation process. | 457 // An integer representing the state of the default apps installation process. |
| 471 // This value is persisted in the profile's user preferences because the process | 458 // This value is persisted in the profile's user preferences because the process |
| 472 // is async, and the user may have stopped chrome in the middle. The next time | 459 // is async, and the user may have stopped chrome in the middle. The next time |
| (...skipping 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 2248 #endif | 2235 #endif |
| 2249 | 2236 |
| 2250 // The base64-encoded representation of the public key to use to validate origin | 2237 // The base64-encoded representation of the public key to use to validate origin |
| 2251 // trial token signatures. | 2238 // trial token signatures. |
| 2252 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; | 2239 const char kOriginTrialPublicKey[] = "origin_trials.public_key"; |
| 2253 | 2240 |
| 2254 // A list of origin trial features to disable by policy. | 2241 // A list of origin trial features to disable by policy. |
| 2255 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; | 2242 const char kOriginTrialDisabledFeatures[] = "origin_trials.disabled_features"; |
| 2256 | 2243 |
| 2257 } // namespace prefs | 2244 } // namespace prefs |
| OLD | NEW |