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

Side by Side Diff: components/network_session_configurator/network_session_configurator.cc

Issue 2236973002: Landing Recent QUIC changes until 4AM, Aug 7, 2016 UTC-4 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: flip quic_sequencer_buffer_retire_block_in_time to true Created 4 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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 "components/network_session_configurator/network_session_configurator.h " 5 #include "components/network_session_configurator/network_session_configurator.h "
6 6
7 #include <map> 7 #include <map>
8 8
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
345 supported_versions.push_back(version); 345 supported_versions.push_back(version);
346 params->quic_supported_versions = supported_versions; 346 params->quic_supported_versions = supported_versions;
347 } 347 }
348 } 348 }
349 349
350 } // anonymous namespace 350 } // anonymous namespace
351 351
352 namespace network_session_configurator { 352 namespace network_session_configurator {
353 353
354 net::QuicVersion ParseQuicVersion(const std::string& quic_version) { 354 net::QuicVersion ParseQuicVersion(const std::string& quic_version) {
355 net::QuicVersionVector supported_versions = net::QuicSupportedVersions(); 355 net::QuicVersionVector supported_versions = net::AllSupportedVersions();
356 for (size_t i = 0; i < supported_versions.size(); ++i) { 356 for (size_t i = 0; i < supported_versions.size(); ++i) {
357 net::QuicVersion version = supported_versions[i]; 357 net::QuicVersion version = supported_versions[i];
358 if (net::QuicVersionToString(version) == quic_version) { 358 if (net::QuicVersionToString(version) == quic_version) {
359 return version; 359 return version;
360 } 360 }
361 } 361 }
362 362
363 return net::QUIC_VERSION_UNSUPPORTED; 363 return net::QUIC_VERSION_UNSUPPORTED;
364 } 364 }
365 365
(...skipping 13 matching lines...) Expand all
379 std::string http2_trial_group = 379 std::string http2_trial_group =
380 base::FieldTrialList::FindFullName(kHttp2FieldTrialName); 380 base::FieldTrialList::FindFullName(kHttp2FieldTrialName);
381 ConfigureHttp2Params(http2_trial_group, params); 381 ConfigureHttp2Params(http2_trial_group, params);
382 382
383 const std::string tfo_trial_group = 383 const std::string tfo_trial_group =
384 base::FieldTrialList::FindFullName(kTCPFastOpenFieldTrialName); 384 base::FieldTrialList::FindFullName(kTCPFastOpenFieldTrialName);
385 ConfigureTCPFastOpenParams(tfo_trial_group, params); 385 ConfigureTCPFastOpenParams(tfo_trial_group, params);
386 } 386 }
387 387
388 } // namespace network_session_configurator 388 } // namespace network_session_configurator
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698