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

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: Better Close() handling and 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 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 SINGLE_VALUE_TYPE("") 375 SINGLE_VALUE_TYPE("")
376 #endif 376 #endif
377 }, 377 },
378 { 378 {
379 "downloads-new-ui", // FLAGS:RECORD_UMA 379 "downloads-new-ui", // FLAGS:RECORD_UMA
380 IDS_FLAGS_DOWNLOADS_NEW_UI_NAME, 380 IDS_FLAGS_DOWNLOADS_NEW_UI_NAME,
381 IDS_FLAGS_DOWNLOADS_NEW_UI_DESCRIPTION, 381 IDS_FLAGS_DOWNLOADS_NEW_UI_DESCRIPTION,
382 kOsAll, 382 kOsAll,
383 SINGLE_VALUE_TYPE(switches::kDownloadsNewUI) 383 SINGLE_VALUE_TYPE(switches::kDownloadsNewUI)
384 }, 384 },
385 {
386 "enable-http-pipelining",
387 IDS_FLAGS_ENABLE_HTTP_PIPELINING_NAME,
388 IDS_FLAGS_ENABLE_HTTP_PIPELINING_DESCRIPTION,
389 kOsAll,
390 SINGLE_VALUE_TYPE(switches::kEnableHttpPipelining)
391 },
385 }; 392 };
386 393
387 const Experiment* experiments = kExperiments; 394 const Experiment* experiments = kExperiments;
388 size_t num_experiments = arraysize(kExperiments); 395 size_t num_experiments = arraysize(kExperiments);
389 396
390 // Stores and encapsulates the little state that about:flags has. 397 // Stores and encapsulates the little state that about:flags has.
391 class FlagsState { 398 class FlagsState {
392 public: 399 public:
393 FlagsState() : needs_restart_(false) {} 400 FlagsState() : needs_restart_(false) {}
394 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 401 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after
804 } 811 }
805 812
806 const Experiment* GetExperiments(size_t* count) { 813 const Experiment* GetExperiments(size_t* count) {
807 *count = num_experiments; 814 *count = num_experiments;
808 return experiments; 815 return experiments;
809 } 816 }
810 817
811 } // namespace testing 818 } // namespace testing
812 819
813 } // namespace about_flags 820 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698