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

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

Issue 336543003: Add AllowNetworkPrediction preference name and enum. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address msg8. Created 6 years, 6 months 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') | no next file » | 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 // 2: Browser window preferences migrated: kDevToolsSplitLocation and 496 // 2: Browser window preferences migrated: kDevToolsSplitLocation and
497 // kBrowserWindowPlacement 497 // kBrowserWindowPlacement
498 const char kMultipleProfilePrefMigration[] = 498 const char kMultipleProfilePrefMigration[] =
499 "local_state.multiple_profile_prefs_version"; 499 "local_state.multiple_profile_prefs_version";
500 500
501 // A boolean pref set to true if prediction of network actions is allowed. 501 // A boolean pref set to true if prediction of network actions is allowed.
502 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering 502 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
503 // of web pages, and resource prefetching. 503 // of web pages, and resource prefetching.
504 // NOTE: The "dns_prefetching.enabled" value is used so that historical user 504 // NOTE: The "dns_prefetching.enabled" value is used so that historical user
505 // preferences are not lost. 505 // preferences are not lost.
506 // TODO(bnc): Remove kNetworkPredictionEnabled once kAllowNetworkPrediction is
507 // functioning as per crbug.com/334602.
506 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled"; 508 const char kNetworkPredictionEnabled[] = "dns_prefetching.enabled";
507 509
510 // A preference of enum chrome_browser_net::NetworkPredictionOptions shows
511 // if prediction of network actions is allowed, depending on network type.
512 // Actions include DNS prefetching, TCP and SSL preconnection, prerendering
513 // of web pages, and resource prefetching.
514 // TODO(bnc): Implement this preference as per crbug.com/334602.
515 const char kAllowNetworkPrediction[] = "net.allow_network_prediction";
516
508 // An integer representing the state of the default apps installation process. 517 // An integer representing the state of the default apps installation process.
509 // This value is persisted in the profile's user preferences because the process 518 // This value is persisted in the profile's user preferences because the process
510 // is async, and the user may have stopped chrome in the middle. The next time 519 // is async, and the user may have stopped chrome in the middle. The next time
511 // the profile is opened, the process will continue from where it left off. 520 // the profile is opened, the process will continue from where it left off.
512 // 521 //
513 // See possible values in external_provider_impl.cc. 522 // See possible values in external_provider_impl.cc.
514 const char kDefaultAppsInstallState[] = "default_apps_install_state"; 523 const char kDefaultAppsInstallState[] = "default_apps_install_state";
515 524
516 // A boolean pref set to true if the Chrome Web Store icons should be hidden 525 // A boolean pref set to true if the Chrome Web Store icons should be hidden
517 // from the New Tab Page and app launcher. 526 // from the New Tab Page and app launcher.
(...skipping 1863 matching lines...) Expand 10 before | Expand all | Expand 10 after
2381 // "mapped_title" entries, detailing the bookmark target URL (if any), the title 2390 // "mapped_title" entries, detailing the bookmark target URL (if any), the title
2382 // given by the PartnerBookmarksProvider and either the user-visible renamed 2391 // given by the PartnerBookmarksProvider and either the user-visible renamed
2383 // title or an empty string if the bookmark node was removed. 2392 // title or an empty string if the bookmark node was removed.
2384 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings"; 2393 const char kPartnerBookmarkMappings[] = "partnerbookmarks.mappings";
2385 #endif 2394 #endif
2386 2395
2387 // Whether DNS Quick Check is disabled in proxy resolution. 2396 // Whether DNS Quick Check is disabled in proxy resolution.
2388 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled"; 2397 const char kQuickCheckEnabled[] = "proxy.quick_check_enabled";
2389 2398
2390 } // namespace prefs 2399 } // namespace prefs
OLDNEW
« no previous file with comments | « chrome/common/pref_names.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698