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

Unified Diff: net/url_request/url_request_context_builder.cc

Issue 1505983003: QUIC - cronet - added idle_connection_timeout_seconds and disable experiments (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@enable_preconnect_exp
Patch Set: Deleted PreConnect option Created 5 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
« no previous file with comments | « net/url_request/url_request_context_builder.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/url_request/url_request_context_builder.cc
diff --git a/net/url_request/url_request_context_builder.cc b/net/url_request/url_request_context_builder.cc
index 6c0b37587cc5768f3cc6bb00f5507cf10da21f53..c369b3e480edd0e78b23882099f80c62044d14d2 100644
--- a/net/url_request/url_request_context_builder.cc
+++ b/net/url_request/url_request_context_builder.cc
@@ -28,6 +28,7 @@
#include "net/http/http_server_properties_manager.h"
#include "net/http/transport_security_persister.h"
#include "net/http/transport_security_state.h"
+#include "net/quic/quic_stream_factory.h"
#include "net/ssl/channel_id_service.h"
#include "net/ssl/default_channel_id_store.h"
#include "net/ssl/ssl_config_service_defaults.h"
@@ -181,7 +182,8 @@ URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams()
quic_store_server_configs_in_properties(false),
quic_delay_tcp_race(false),
quic_max_number_of_lossy_connections(0),
- quic_packet_loss_threshold(1.0f) {}
+ quic_packet_loss_threshold(1.0f),
+ quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds) {}
URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams()
{}
@@ -395,6 +397,8 @@ scoped_ptr<URLRequestContext> URLRequestContextBuilder::Build() {
http_network_session_params_.quic_max_number_of_lossy_connections;
network_session_params.quic_packet_loss_threshold =
http_network_session_params_.quic_packet_loss_threshold;
+ network_session_params.quic_idle_connection_timeout_seconds =
+ http_network_session_params_.quic_idle_connection_timeout_seconds;
network_session_params.quic_connection_options =
http_network_session_params_.quic_connection_options;
« no previous file with comments | « net/url_request/url_request_context_builder.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698