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

Unified Diff: net/quic/quic_stream_factory.cc

Issue 110853010: Enable support for QUIC 13. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: cleanup Created 7 years 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 side-by-side diff with in-line comments
Download patch
Index: net/quic/quic_stream_factory.cc
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
index b1dc9fe3c0c07e7815d7d5fd66404d56ac426a6e..442abc9c067c7d715078fbc8f3e89f71ab4da3f6 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -256,7 +256,8 @@ QuicStreamFactory::QuicStreamFactory(
QuicCryptoClientStreamFactory* quic_crypto_client_stream_factory,
QuicRandom* random_generator,
QuicClock* clock,
- size_t max_packet_length)
+ size_t max_packet_length,
+ QuicVersionVector supported_versions)
jar (doing other things) 2013/12/20 00:53:12 nit: const ref
Ryan Hamilton 2013/12/20 01:55:02 Done.
: require_confirmation_(true),
host_resolver_(host_resolver),
client_socket_factory_(client_socket_factory),
@@ -265,8 +266,9 @@ QuicStreamFactory::QuicStreamFactory(
random_generator_(random_generator),
clock_(clock),
max_packet_length_(max_packet_length),
- weak_factory_(this),
- port_seed_(random_generator_->RandUint64()) {
+ supported_versions_(supported_versions),
+ port_seed_(random_generator_->RandUint64()),
+ weak_factory_(this) {
config_.SetDefaults();
config_.set_idle_connection_state_lifetime(
QuicTime::Delta::FromSeconds(30),
@@ -495,7 +497,7 @@ int QuicStreamFactory::CreateSession(
QuicConnection* connection = new QuicConnection(guid, addr, helper_.get(),
writer.get(), false,
- QuicSupportedVersions());
+ supported_versions_);
writer->SetConnection(connection);
connection->options()->max_packet_length = max_packet_length_;

Powered by Google App Engine
This is Rietveld 408576698