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

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

Issue 2129263002: Revert "Revert of QUIC - Race Cert Verification with host resolution if (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix cronet unittest Created 4 years, 5 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 (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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 int quic_max_number_of_lossy_connections; 99 int quic_max_number_of_lossy_connections;
100 std::unordered_set<std::string> quic_host_whitelist; 100 std::unordered_set<std::string> quic_host_whitelist;
101 bool quic_prefer_aes; 101 bool quic_prefer_aes;
102 float quic_packet_loss_threshold; 102 float quic_packet_loss_threshold;
103 int quic_idle_connection_timeout_seconds; 103 int quic_idle_connection_timeout_seconds;
104 QuicTagVector quic_connection_options; 104 QuicTagVector quic_connection_options;
105 bool quic_close_sessions_on_ip_change; 105 bool quic_close_sessions_on_ip_change;
106 bool quic_migrate_sessions_on_network_change; 106 bool quic_migrate_sessions_on_network_change;
107 bool quic_migrate_sessions_early; 107 bool quic_migrate_sessions_early;
108 bool quic_disable_bidirectional_streams; 108 bool quic_disable_bidirectional_streams;
109 bool quic_race_cert_verification;
109 }; 110 };
110 111
111 URLRequestContextBuilder(); 112 URLRequestContextBuilder();
112 ~URLRequestContextBuilder(); 113 ~URLRequestContextBuilder();
113 114
114 // Extracts the component pointers required to construct an HttpNetworkSession 115 // Extracts the component pointers required to construct an HttpNetworkSession
115 // and copies them into the Params used to create the session. This function 116 // and copies them into the Params used to create the session. This function
116 // should be used to ensure that a context and its associated 117 // should be used to ensure that a context and its associated
117 // HttpNetworkSession are consistent. 118 // HttpNetworkSession are consistent.
118 static void SetHttpNetworkSessionComponents( 119 static void SetHttpNetworkSessionComponents(
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 http_network_session_params_.quic_migrate_sessions_early = 278 http_network_session_params_.quic_migrate_sessions_early =
278 quic_migrate_sessions_early; 279 quic_migrate_sessions_early;
279 } 280 }
280 281
281 void set_quic_disable_bidirectional_streams( 282 void set_quic_disable_bidirectional_streams(
282 bool quic_disable_bidirectional_streams) { 283 bool quic_disable_bidirectional_streams) {
283 http_network_session_params_.quic_disable_bidirectional_streams = 284 http_network_session_params_.quic_disable_bidirectional_streams =
284 quic_disable_bidirectional_streams; 285 quic_disable_bidirectional_streams;
285 } 286 }
286 287
288 void set_quic_race_cert_verification(bool quic_race_cert_verification) {
289 http_network_session_params_.quic_race_cert_verification =
290 quic_race_cert_verification;
291 }
292
287 void set_throttling_enabled(bool throttling_enabled) { 293 void set_throttling_enabled(bool throttling_enabled) {
288 throttling_enabled_ = throttling_enabled; 294 throttling_enabled_ = throttling_enabled;
289 } 295 }
290 296
291 void set_backoff_enabled(bool backoff_enabled) { 297 void set_backoff_enabled(bool backoff_enabled) {
292 backoff_enabled_ = backoff_enabled; 298 backoff_enabled_ = backoff_enabled;
293 } 299 }
294 300
295 void set_socket_performance_watcher_factory( 301 void set_socket_performance_watcher_factory(
296 SocketPerformanceWatcherFactory* socket_performance_watcher_factory) { 302 SocketPerformanceWatcherFactory* socket_performance_watcher_factory) {
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 // Not owned by the context builder. Once it is set to a non-null value, it 384 // Not owned by the context builder. Once it is set to a non-null value, it
379 // is guaranteed to be non-null during the lifetime of |this|. 385 // is guaranteed to be non-null during the lifetime of |this|.
380 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_; 386 SocketPerformanceWatcherFactory* socket_performance_watcher_factory_;
381 387
382 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder); 388 DISALLOW_COPY_AND_ASSIGN(URLRequestContextBuilder);
383 }; 389 };
384 390
385 } // namespace net 391 } // namespace net
386 392
387 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_ 393 #endif // NET_URL_REQUEST_URL_REQUEST_CONTEXT_BUILDER_H_
OLDNEW
« no previous file with comments | « net/tools/quic/test_tools/quic_test_client.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