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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 10416002: Seculative resource prefetching for URLs CL. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 7 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
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/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 707 matching lines...) Expand 10 before | Expand all | Expand 10 after
718 SINGLE_VALUE_TYPE(ash::switches::kAshTouchHud) 718 SINGLE_VALUE_TYPE(ash::switches::kAshTouchHud)
719 }, 719 },
720 { 720 {
721 "ash-notify", 721 "ash-notify",
722 IDS_FLAGS_ENABLE_ASH_NOTIFY_NAME, 722 IDS_FLAGS_ENABLE_ASH_NOTIFY_NAME,
723 IDS_FLAGS_ENABLE_ASH_NOTIFY_DESCRIPTION, 723 IDS_FLAGS_ENABLE_ASH_NOTIFY_DESCRIPTION,
724 kOsAll, 724 kOsAll,
725 SINGLE_VALUE_TYPE(ash::switches::kAshNotify), 725 SINGLE_VALUE_TYPE(ash::switches::kAshNotify),
726 }, 726 },
727 #endif // defined(USE_ASH) 727 #endif // defined(USE_ASH)
728 {
729 "enable-speculative-resource-prefetching",
730 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_NAME,
731 IDS_FLAGS_ENABLE_SPECULATIVE_RESOURCE_PREFETCHING_DESCRIPTION,
732 kOsAll,
733 SINGLE_VALUE_TYPE(switches::kEnableSpeculativeResourcePrefetching),
734 },
728 }; 735 };
729 736
730 const Experiment* experiments = kExperiments; 737 const Experiment* experiments = kExperiments;
731 size_t num_experiments = arraysize(kExperiments); 738 size_t num_experiments = arraysize(kExperiments);
732 739
733 // Stores and encapsulates the little state that about:flags has. 740 // Stores and encapsulates the little state that about:flags has.
734 class FlagsState { 741 class FlagsState {
735 public: 742 public:
736 FlagsState() : needs_restart_(false) {} 743 FlagsState() : needs_restart_(false) {}
737 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 744 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after
1153 } 1160 }
1154 1161
1155 const Experiment* GetExperiments(size_t* count) { 1162 const Experiment* GetExperiments(size_t* count) {
1156 *count = num_experiments; 1163 *count = num_experiments;
1157 return experiments; 1164 return experiments;
1158 } 1165 }
1159 1166
1160 } // namespace testing 1167 } // namespace testing
1161 1168
1162 } // namespace about_flags 1169 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698