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

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: Added unit tests Created 9 years, 4 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 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 "memory-widget", 348 "memory-widget",
349 IDS_FLAGS_MEMORY_WIDGET_NAME, 349 IDS_FLAGS_MEMORY_WIDGET_NAME,
350 IDS_FLAGS_MEMORY_WIDGET_DESCRIPTION, 350 IDS_FLAGS_MEMORY_WIDGET_DESCRIPTION,
351 kOsCrOS, 351 kOsCrOS,
352 #if defined(OS_CHROMEOS) 352 #if defined(OS_CHROMEOS)
353 // This switch exists only on Chrome OS. 353 // This switch exists only on Chrome OS.
354 SINGLE_VALUE_TYPE(switches::kMemoryWidget) 354 SINGLE_VALUE_TYPE(switches::kMemoryWidget)
355 #else 355 #else
356 SINGLE_VALUE_TYPE("") 356 SINGLE_VALUE_TYPE("")
357 #endif 357 #endif
358 },}; 358 },
359 {
360 "enable-http-pipelining",
361 IDS_FLAGS_ENABLE_HTTP_PIPELINING_NAME,
362 IDS_FLAGS_ENABLE_HTTP_PIPELINING_DESCRIPTION,
363 kOsAll,
364 SINGLE_VALUE_TYPE(switches::kEnableHttpPipelining)
365 },
366 };
359 367
360 const Experiment* experiments = kExperiments; 368 const Experiment* experiments = kExperiments;
361 size_t num_experiments = arraysize(kExperiments); 369 size_t num_experiments = arraysize(kExperiments);
362 370
363 // Stores and encapsulates the little state that about:flags has. 371 // Stores and encapsulates the little state that about:flags has.
364 class FlagsState { 372 class FlagsState {
365 public: 373 public:
366 FlagsState() : needs_restart_(false) {} 374 FlagsState() : needs_restart_(false) {}
367 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 375 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
368 bool IsRestartNeededToCommitChanges(); 376 bool IsRestartNeededToCommitChanges();
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
788 } 796 }
789 797
790 const Experiment* GetExperiments(size_t* count) { 798 const Experiment* GetExperiments(size_t* count) {
791 *count = num_experiments; 799 *count = num_experiments;
792 return experiments; 800 return experiments;
793 } 801 }
794 802
795 } // namespace testing 803 } // namespace testing
796 804
797 } // namespace about_flags 805 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698