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

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: Fix trybot issues 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 405 matching lines...) Expand 10 before | Expand all | Expand 10 after
416 kOsAll, 416 kOsAll,
417 SINGLE_VALUE_TYPE(switches::kEnableNTPBookmarkFeatures) 417 SINGLE_VALUE_TYPE(switches::kEnableNTPBookmarkFeatures)
418 }, 418 },
419 { 419 {
420 "enable-video-track", 420 "enable-video-track",
421 IDS_FLAGS_ENABLE_VIDEO_TRACK_NAME, 421 IDS_FLAGS_ENABLE_VIDEO_TRACK_NAME,
422 IDS_FLAGS_ENABLE_VIDEO_TRACK_DESCRIPTION, 422 IDS_FLAGS_ENABLE_VIDEO_TRACK_DESCRIPTION,
423 kOsAll, 423 kOsAll,
424 SINGLE_VALUE_TYPE(switches::kEnableVideoTrack) 424 SINGLE_VALUE_TYPE(switches::kEnableVideoTrack)
425 }, 425 },
426 {
427 "enable-http-pipelining",
428 IDS_FLAGS_ENABLE_HTTP_PIPELINING_NAME,
429 IDS_FLAGS_ENABLE_HTTP_PIPELINING_DESCRIPTION,
430 kOsAll,
431 SINGLE_VALUE_TYPE(switches::kEnableHttpPipelining)
432 },
426 }; 433 };
427 434
428 const Experiment* experiments = kExperiments; 435 const Experiment* experiments = kExperiments;
429 size_t num_experiments = arraysize(kExperiments); 436 size_t num_experiments = arraysize(kExperiments);
430 437
431 // Stores and encapsulates the little state that about:flags has. 438 // Stores and encapsulates the little state that about:flags has.
432 class FlagsState { 439 class FlagsState {
433 public: 440 public:
434 FlagsState() : needs_restart_(false) {} 441 FlagsState() : needs_restart_(false) {}
435 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 442 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
845 } 852 }
846 853
847 const Experiment* GetExperiments(size_t* count) { 854 const Experiment* GetExperiments(size_t* count) {
848 *count = num_experiments; 855 *count = num_experiments;
849 return experiments; 856 return experiments;
850 } 857 }
851 858
852 } // namespace testing 859 } // namespace testing
853 860
854 } // namespace about_flags 861 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698