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

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

Issue 1580583002: Add a whitelist for QUIC hosts. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix comments Created 4 years, 11 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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after
396 network_session_params.quic_delay_tcp_race = 396 network_session_params.quic_delay_tcp_race =
397 http_network_session_params_.quic_delay_tcp_race; 397 http_network_session_params_.quic_delay_tcp_race;
398 network_session_params.quic_max_number_of_lossy_connections = 398 network_session_params.quic_max_number_of_lossy_connections =
399 http_network_session_params_.quic_max_number_of_lossy_connections; 399 http_network_session_params_.quic_max_number_of_lossy_connections;
400 network_session_params.quic_packet_loss_threshold = 400 network_session_params.quic_packet_loss_threshold =
401 http_network_session_params_.quic_packet_loss_threshold; 401 http_network_session_params_.quic_packet_loss_threshold;
402 network_session_params.quic_idle_connection_timeout_seconds = 402 network_session_params.quic_idle_connection_timeout_seconds =
403 http_network_session_params_.quic_idle_connection_timeout_seconds; 403 http_network_session_params_.quic_idle_connection_timeout_seconds;
404 network_session_params.quic_connection_options = 404 network_session_params.quic_connection_options =
405 http_network_session_params_.quic_connection_options; 405 http_network_session_params_.quic_connection_options;
406 network_session_params.quic_host_whitelist =
407 http_network_session_params_.quic_host_whitelist;
406 408
407 storage->set_http_network_session( 409 storage->set_http_network_session(
408 make_scoped_ptr(new HttpNetworkSession(network_session_params))); 410 make_scoped_ptr(new HttpNetworkSession(network_session_params)));
409 411
410 scoped_ptr<HttpTransactionFactory> http_transaction_factory; 412 scoped_ptr<HttpTransactionFactory> http_transaction_factory;
411 if (http_cache_enabled_) { 413 if (http_cache_enabled_) {
412 scoped_ptr<HttpCache::BackendFactory> http_cache_backend; 414 scoped_ptr<HttpCache::BackendFactory> http_cache_backend;
413 if (http_cache_params_.type != HttpCacheParams::IN_MEMORY) { 415 if (http_cache_params_.type != HttpCacheParams::IN_MEMORY) {
414 BackendType backend_type = 416 BackendType backend_type =
415 http_cache_params_.type == HttpCacheParams::DISK 417 http_cache_params_.type == HttpCacheParams::DISK
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 } 467 }
466 url_request_interceptors_.clear(); 468 url_request_interceptors_.clear();
467 } 469 }
468 storage->set_job_factory(std::move(top_job_factory)); 470 storage->set_job_factory(std::move(top_job_factory));
469 // TODO(willchan): Support sdch. 471 // TODO(willchan): Support sdch.
470 472
471 return std::move(context); 473 return std::move(context);
472 } 474 }
473 475
474 } // namespace net 476 } // 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