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

Unified Diff: net/quic/quic_stream_factory.cc

Issue 346043002: Add support for setting QUIC connection options via field trial config. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Better Windows fix Created 6 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_stream_factory.cc
diff --git a/net/quic/quic_stream_factory.cc b/net/quic/quic_stream_factory.cc
index 2fc1b9e334c41b9a9b4e39b0e596eea9676bddb7..016d1dd7bb00eee937c80fa37e8a212955d8ccbb 100644
--- a/net/quic/quic_stream_factory.cc
+++ b/net/quic/quic_stream_factory.cc
@@ -85,7 +85,8 @@ bool IsEcdsaSupported() {
}
QuicConfig InitializeQuicConfig(bool enable_pacing,
- bool enable_time_based_loss_detection) {
+ bool enable_time_based_loss_detection,
+ QuicTagVector connection_options) {
QuicConfig config;
config.SetDefaults();
config.EnablePacing(enable_pacing);
@@ -94,6 +95,7 @@ QuicConfig InitializeQuicConfig(bool enable_pacing,
config.set_idle_connection_state_lifetime(
QuicTime::Delta::FromSeconds(kIdleConnectionTimeoutSeconds),
QuicTime::Delta::FromSeconds(kIdleConnectionTimeoutSeconds));
+ config.SetCongestionOptionsToSend(connection_options);
return config;
}
@@ -458,7 +460,8 @@ QuicStreamFactory::QuicStreamFactory(
const QuicVersionVector& supported_versions,
bool enable_port_selection,
bool enable_pacing,
- bool enable_time_based_loss_detection)
+ bool enable_time_based_loss_detection,
+ QuicTagVector connection_options)
: require_confirmation_(true),
host_resolver_(host_resolver),
client_socket_factory_(client_socket_factory),
@@ -470,7 +473,8 @@ QuicStreamFactory::QuicStreamFactory(
clock_(clock),
max_packet_length_(max_packet_length),
config_(InitializeQuicConfig(enable_pacing,
- enable_time_based_loss_detection)),
+ enable_time_based_loss_detection,
+ connection_options)),
supported_versions_(supported_versions),
enable_port_selection_(enable_port_selection),
port_seed_(random_generator_->RandUint64()),
« no previous file with comments | « net/quic/quic_stream_factory.h ('k') | net/quic/quic_stream_factory_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698