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

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

Issue 2089243002: Split enable_alternative_service_with_different_host flag. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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 #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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 max_size(0) {} 177 max_size(0) {}
178 URLRequestContextBuilder::HttpCacheParams::~HttpCacheParams() {} 178 URLRequestContextBuilder::HttpCacheParams::~HttpCacheParams() {}
179 179
180 URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams() 180 URLRequestContextBuilder::HttpNetworkSessionParams::HttpNetworkSessionParams()
181 : ignore_certificate_errors(false), 181 : ignore_certificate_errors(false),
182 host_mapping_rules(NULL), 182 host_mapping_rules(NULL),
183 testing_fixed_http_port(0), 183 testing_fixed_http_port(0),
184 testing_fixed_https_port(0), 184 testing_fixed_https_port(0),
185 enable_spdy31(false), 185 enable_spdy31(false),
186 enable_http2(true), 186 enable_http2(true),
187 enable_alternative_service_with_different_host(true),
188 enable_quic(false), 187 enable_quic(false),
189 quic_max_server_configs_stored_in_properties(0), 188 quic_max_server_configs_stored_in_properties(0),
190 quic_delay_tcp_race(true), 189 quic_delay_tcp_race(true),
191 quic_max_number_of_lossy_connections(0), 190 quic_max_number_of_lossy_connections(0),
192 quic_prefer_aes(false), 191 quic_prefer_aes(false),
193 quic_packet_loss_threshold(1.0f), 192 quic_packet_loss_threshold(1.0f),
194 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds), 193 quic_idle_connection_timeout_seconds(kIdleConnectionTimeoutSeconds),
195 quic_close_sessions_on_ip_change(false), 194 quic_close_sessions_on_ip_change(false),
196 quic_migrate_sessions_on_network_change(false), 195 quic_migrate_sessions_on_network_change(false),
197 quic_migrate_sessions_early(false), 196 quic_migrate_sessions_early(false),
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 network_session_params.host_mapping_rules = 410 network_session_params.host_mapping_rules =
412 http_network_session_params_.host_mapping_rules; 411 http_network_session_params_.host_mapping_rules;
413 network_session_params.testing_fixed_http_port = 412 network_session_params.testing_fixed_http_port =
414 http_network_session_params_.testing_fixed_http_port; 413 http_network_session_params_.testing_fixed_http_port;
415 network_session_params.testing_fixed_https_port = 414 network_session_params.testing_fixed_https_port =
416 http_network_session_params_.testing_fixed_https_port; 415 http_network_session_params_.testing_fixed_https_port;
417 network_session_params.enable_spdy31 = 416 network_session_params.enable_spdy31 =
418 http_network_session_params_.enable_spdy31; 417 http_network_session_params_.enable_spdy31;
419 network_session_params.enable_http2 = 418 network_session_params.enable_http2 =
420 http_network_session_params_.enable_http2; 419 http_network_session_params_.enable_http2;
421 network_session_params.enable_alternative_service_with_different_host =
422 http_network_session_params_
423 .enable_alternative_service_with_different_host;
424 network_session_params.enable_quic = http_network_session_params_.enable_quic; 420 network_session_params.enable_quic = http_network_session_params_.enable_quic;
425 network_session_params.quic_max_server_configs_stored_in_properties = 421 network_session_params.quic_max_server_configs_stored_in_properties =
426 http_network_session_params_.quic_max_server_configs_stored_in_properties; 422 http_network_session_params_.quic_max_server_configs_stored_in_properties;
427 network_session_params.quic_delay_tcp_race = 423 network_session_params.quic_delay_tcp_race =
428 http_network_session_params_.quic_delay_tcp_race; 424 http_network_session_params_.quic_delay_tcp_race;
429 network_session_params.quic_max_number_of_lossy_connections = 425 network_session_params.quic_max_number_of_lossy_connections =
430 http_network_session_params_.quic_max_number_of_lossy_connections; 426 http_network_session_params_.quic_max_number_of_lossy_connections;
431 network_session_params.quic_packet_loss_threshold = 427 network_session_params.quic_packet_loss_threshold =
432 http_network_session_params_.quic_packet_loss_threshold; 428 http_network_session_params_.quic_packet_loss_threshold;
433 network_session_params.quic_idle_connection_timeout_seconds = 429 network_session_params.quic_idle_connection_timeout_seconds =
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
522 } 518 }
523 url_request_interceptors_.clear(); 519 url_request_interceptors_.clear();
524 } 520 }
525 storage->set_job_factory(std::move(top_job_factory)); 521 storage->set_job_factory(std::move(top_job_factory));
526 // TODO(willchan): Support sdch. 522 // TODO(willchan): Support sdch.
527 523
528 return std::move(context); 524 return std::move(context);
529 } 525 }
530 526
531 } // namespace net 527 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698