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

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

Issue 1665503002: [Cronet] Expose quic_user_agent_id and quic_prefer_aes config options. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Document QUIC UAID string usage, don't pass it down unless QUIC is enabled. Created 4 years, 10 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
« no previous file with comments | « net/url_request/url_request_context_builder.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "net/url_request/url_request_context_builder.h" 5 #include "net/url_request/url_request_context_builder.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
179 testing_fixed_http_port(0), 179 testing_fixed_http_port(0),
180 testing_fixed_https_port(0), 180 testing_fixed_https_port(0),
181 enable_spdy31(true), 181 enable_spdy31(true),
182 enable_http2(true), 182 enable_http2(true),
183 parse_alternative_services(false), 183 parse_alternative_services(false),
184 enable_alternative_service_with_different_host(false), 184 enable_alternative_service_with_different_host(false),
185 enable_quic(false), 185 enable_quic(false),
186 quic_max_server_configs_stored_in_properties(0), 186 quic_max_server_configs_stored_in_properties(0),
187 quic_delay_tcp_race(false), 187 quic_delay_tcp_race(false),
188 quic_max_number_of_lossy_connections(0), 188 quic_max_number_of_lossy_connections(0),
189 quic_prefer_aes(false),
189 quic_packet_loss_threshold(1.0f), 190 quic_packet_loss_threshold(1.0f),
190 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), 191 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds),
191 quic_close_sessions_on_ip_change(false), 192 quic_close_sessions_on_ip_change(false),
192 quic_migrate_sessions_on_network_change(false) {} 193 quic_migrate_sessions_on_network_change(false) {}
193 194
194 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams() 195 URLRequestContextBuilder::HttpNetworkSessionParams::~HttpNetworkSessionParams()
195 {} 196 {}
196 197
197 URLRequestContextBuilder::URLRequestContextBuilder() 198 URLRequestContextBuilder::URLRequestContextBuilder()
198 : data_enabled_(false), 199 : data_enabled_(false),
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
409 network_session_params.quic_idle_connection_timeout_seconds = 410 network_session_params.quic_idle_connection_timeout_seconds =
410 http_network_session_params_.quic_idle_connection_timeout_seconds; 411 http_network_session_params_.quic_idle_connection_timeout_seconds;
411 network_session_params.quic_connection_options = 412 network_session_params.quic_connection_options =
412 http_network_session_params_.quic_connection_options; 413 http_network_session_params_.quic_connection_options;
413 network_session_params.quic_host_whitelist = 414 network_session_params.quic_host_whitelist =
414 http_network_session_params_.quic_host_whitelist; 415 http_network_session_params_.quic_host_whitelist;
415 network_session_params.quic_close_sessions_on_ip_change = 416 network_session_params.quic_close_sessions_on_ip_change =
416 http_network_session_params_.quic_close_sessions_on_ip_change; 417 http_network_session_params_.quic_close_sessions_on_ip_change;
417 network_session_params.quic_migrate_sessions_on_network_change = 418 network_session_params.quic_migrate_sessions_on_network_change =
418 http_network_session_params_.quic_migrate_sessions_on_network_change; 419 http_network_session_params_.quic_migrate_sessions_on_network_change;
420 network_session_params.quic_user_agent_id =
421 http_network_session_params_.quic_user_agent_id;
422 network_session_params.quic_prefer_aes =
423 http_network_session_params_.quic_prefer_aes;
419 424
420 storage->set_http_network_session( 425 storage->set_http_network_session(
421 make_scoped_ptr(new HttpNetworkSession(network_session_params))); 426 make_scoped_ptr(new HttpNetworkSession(network_session_params)));
422 427
423 scoped_ptr<HttpTransactionFactory> http_transaction_factory; 428 scoped_ptr<HttpTransactionFactory> http_transaction_factory;
424 if (http_cache_enabled_) { 429 if (http_cache_enabled_) {
425 scoped_ptr<HttpCache::BackendFactory> http_cache_backend; 430 scoped_ptr<HttpCache::BackendFactory> http_cache_backend;
426 if (http_cache_params_.type != HttpCacheParams::IN_MEMORY) { 431 if (http_cache_params_.type != HttpCacheParams::IN_MEMORY) {
427 BackendType backend_type = 432 BackendType backend_type =
428 http_cache_params_.type == HttpCacheParams::DISK 433 http_cache_params_.type == HttpCacheParams::DISK
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 } 483 }
479 url_request_interceptors_.clear(); 484 url_request_interceptors_.clear();
480 } 485 }
481 storage->set_job_factory(std::move(top_job_factory)); 486 storage->set_job_factory(std::move(top_job_factory));
482 // TODO(willchan): Support sdch. 487 // TODO(willchan): Support sdch.
483 488
484 return std::move(context); 489 return std::move(context);
485 } 490 }
486 491
487 } // namespace net 492 } // namespace net
OLDNEW
« 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