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

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

Issue 7289006: Basic HTTP pipelining support (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change pool API Created 9 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 403 matching lines...) Expand 10 before | Expand all | Expand 10 after
414 kOsMac | kOsWin | kOsLinux, 414 kOsMac | kOsWin | kOsLinux,
415 SINGLE_VALUE_TYPE(switches::kEnableAutologin) 415 SINGLE_VALUE_TYPE(switches::kEnableAutologin)
416 }, 416 },
417 { 417 {
418 "use-more-webui", 418 "use-more-webui",
419 IDS_FLAGS_USE_MORE_WEBUI_NAME, 419 IDS_FLAGS_USE_MORE_WEBUI_NAME,
420 IDS_FLAGS_USE_MORE_WEBUI_DESCRIPTION, 420 IDS_FLAGS_USE_MORE_WEBUI_DESCRIPTION,
421 kOsAll, 421 kOsAll,
422 SINGLE_VALUE_TYPE(switches::kUseMoreWebUI) 422 SINGLE_VALUE_TYPE(switches::kUseMoreWebUI)
423 }, 423 },
424 {
425 "enable-http-pipelining",
426 IDS_FLAGS_ENABLE_HTTP_PIPELINING_NAME,
427 IDS_FLAGS_ENABLE_HTTP_PIPELINING_DESCRIPTION,
428 kOsAll,
429 SINGLE_VALUE_TYPE(switches::kEnableHttpPipelining)
430 },
424 }; 431 };
425 432
426 const Experiment* experiments = kExperiments; 433 const Experiment* experiments = kExperiments;
427 size_t num_experiments = arraysize(kExperiments); 434 size_t num_experiments = arraysize(kExperiments);
428 435
429 // Stores and encapsulates the little state that about:flags has. 436 // Stores and encapsulates the little state that about:flags has.
430 class FlagsState { 437 class FlagsState {
431 public: 438 public:
432 FlagsState() : needs_restart_(false) {} 439 FlagsState() : needs_restart_(false) {}
433 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 440 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
843 } 850 }
844 851
845 const Experiment* GetExperiments(size_t* count) { 852 const Experiment* GetExperiments(size_t* count) {
846 *count = num_experiments; 853 *count = num_experiments;
847 return experiments; 854 return experiments;
848 } 855 }
849 856
850 } // namespace testing 857 } // namespace testing
851 858
852 } // namespace about_flags 859 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698