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

Side by Side Diff: net/url_request/url_request_context_builder.h

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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This class is useful for building a simple URLRequestContext. Most creators 5 // This class is useful for building a simple URLRequestContext. Most creators
6 // of new URLRequestContexts should use this helper class to construct it. Call 6 // of new URLRequestContexts should use this helper class to construct it. Call
7 // any configuration params, and when done, invoke Build() to construct the 7 // any configuration params, and when done, invoke Build() to construct the
8 // URLRequestContext. This URLRequestContext will own all its own storage. 8 // URLRequestContext. This URLRequestContext will own all its own storage.
9 // 9 //
10 // URLRequestContextBuilder and its associated params classes are initially 10 // URLRequestContextBuilder and its associated params classes are initially
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 uint16 testing_fixed_http_port; 83 uint16 testing_fixed_http_port;
84 uint16 testing_fixed_https_port; 84 uint16 testing_fixed_https_port;
85 NextProtoVector next_protos; 85 NextProtoVector next_protos;
86 std::string trusted_spdy_proxy; 86 std::string trusted_spdy_proxy;
87 bool use_alternative_services; 87 bool use_alternative_services;
88 bool enable_quic; 88 bool enable_quic;
89 bool quic_store_server_configs_in_properties; 89 bool quic_store_server_configs_in_properties;
90 bool quic_delay_tcp_race; 90 bool quic_delay_tcp_race;
91 int quic_max_number_of_lossy_connections; 91 int quic_max_number_of_lossy_connections;
92 float quic_packet_loss_threshold; 92 float quic_packet_loss_threshold;
93 int quic_idle_connection_timeout_seconds;
93 QuicTagVector quic_connection_options; 94 QuicTagVector quic_connection_options;
94 }; 95 };
95 96
96 URLRequestContextBuilder(); 97 URLRequestContextBuilder();
97 ~URLRequestContextBuilder(); 98 ~URLRequestContextBuilder();
98 99
99 // Extracts the component pointers required to construct an HttpNetworkSession 100 // Extracts the component pointers required to construct an HttpNetworkSession
100 // and copies them into the Params used to create the session. This function 101 // and copies them into the Params used to create the session. This function
101 // should be used to ensure that a context and its associated 102 // should be used to ensure that a context and its associated
102 // HttpNetworkSession are consistent. 103 // HttpNetworkSession are consistent.
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int quic_max_number_of_lossy_connections) { 209 int quic_max_number_of_lossy_connections) {
209 http_network_session_params_.quic_max_number_of_lossy_connections = 210 http_network_session_params_.quic_max_number_of_lossy_connections =
210 quic_max_number_of_lossy_connections; 211 quic_max_number_of_lossy_connections;
211 } 212 }
212 213
213 void set_quic_packet_loss_threshold(float quic_packet_loss_threshold) { 214 void set_quic_packet_loss_threshold(float quic_packet_loss_threshold) {
214 http_network_session_params_.quic_packet_loss_threshold = 215 http_network_session_params_.quic_packet_loss_threshold =
215 quic_packet_loss_threshold; 216 quic_packet_loss_threshold;
216 } 217 }
217 218
219 void set_quic_idle_connection_timeout_seconds(
220 int quic_idle_connection_timeout_seconds) {
221 http_network_session_params_.quic_idle_connection_timeout_seconds =
222 quic_idle_connection_timeout_seconds;
223 }
224
218 void set_throttling_enabled(bool throttling_enabled) { 225 void set_throttling_enabled(bool throttling_enabled) {
219 throttling_enabled_ = throttling_enabled; 226 throttling_enabled_ = throttling_enabled;
220 } 227 }
221 228
222 void set_backoff_enabled(bool backoff_enabled) { 229 void set_backoff_enabled(bool backoff_enabled) {
223 backoff_enabled_ = backoff_enabled; 230 backoff_enabled_ = backoff_enabled;
224 } 231 }
225 232
226 void SetCertVerifier(scoped_ptr<CertVerifier> cert_verifier); 233 void SetCertVerifier(scoped_ptr<CertVerifier> cert_verifier);
227 234
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 scoped_ptr<CertVerifier> cert_verifier_; 299 scoped_ptr<CertVerifier> cert_verifier_;
293 ScopedVector<URLRequestInterceptor> url_request_interceptors_; 300 ScopedVector<URLRequestInterceptor> url_request_interceptors_;
294 scoped_ptr<HttpServerProperties> http_server_properties_; 301 scoped_ptr<HttpServerProperties> http_server_properties_;
295 302
296 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); 303 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
297 }; 304 };
298 305
299 } // namespace net 306 } // namespace net
300 307
301 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ 308 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_
OLDNEW
« no previous file with comments | « components/cronet/url_request_context_config_unittest.cc ('k') | net/url_request/url_request_context_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698