| OLD | NEW |
| 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/http/http_stream_factory_impl.h" | 5 #include "net/http/http_stream_factory_impl.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <tuple> | 8 #include <tuple> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 Request* request = job_controller_raw_ptr->Start( | 187 Request* request = job_controller_raw_ptr->Start( |
| 188 request_info, delegate, websocket_handshake_stream_create_helper, net_log, | 188 request_info, delegate, websocket_handshake_stream_create_helper, net_log, |
| 189 stream_type, priority, server_ssl_config, proxy_ssl_config); | 189 stream_type, priority, server_ssl_config, proxy_ssl_config); |
| 190 | 190 |
| 191 return request; | 191 return request; |
| 192 } | 192 } |
| 193 | 193 |
| 194 void HttpStreamFactoryImpl::PreconnectStreams( | 194 void HttpStreamFactoryImpl::PreconnectStreams( |
| 195 int num_streams, | 195 int num_streams, |
| 196 const HttpRequestInfo& request_info) { | 196 const HttpRequestInfo& request_info) { |
| 197 DCHECK(request_info.url.is_valid()); |
| 198 |
| 197 AddJobControllerCountToHistograms(); | 199 AddJobControllerCountToHistograms(); |
| 198 | 200 |
| 199 SSLConfig server_ssl_config; | 201 SSLConfig server_ssl_config; |
| 200 SSLConfig proxy_ssl_config; | 202 SSLConfig proxy_ssl_config; |
| 201 session_->GetSSLConfig(request_info, &server_ssl_config, &proxy_ssl_config); | 203 session_->GetSSLConfig(request_info, &server_ssl_config, &proxy_ssl_config); |
| 202 // All preconnects should perform EV certificate verification. | 204 // All preconnects should perform EV certificate verification. |
| 203 server_ssl_config.verify_ev_cert = true; | 205 server_ssl_config.verify_ev_cert = true; |
| 204 proxy_ssl_config.verify_ev_cert = true; | 206 proxy_ssl_config.verify_ev_cert = true; |
| 205 | 207 |
| 206 DCHECK(!for_websockets_); | 208 DCHECK(!for_websockets_); |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 450 factory_dump->AddScalar("main_job_count", | 452 factory_dump->AddScalar("main_job_count", |
| 451 base::trace_event::MemoryAllocatorDump::kUnitsObjects, | 453 base::trace_event::MemoryAllocatorDump::kUnitsObjects, |
| 452 main_job_count); | 454 main_job_count); |
| 453 // The number of preconnect controllers. | 455 // The number of preconnect controllers. |
| 454 factory_dump->AddScalar("preconnect_count", | 456 factory_dump->AddScalar("preconnect_count", |
| 455 base::trace_event::MemoryAllocatorDump::kUnitsObjects, | 457 base::trace_event::MemoryAllocatorDump::kUnitsObjects, |
| 456 num_controllers_for_preconnect); | 458 num_controllers_for_preconnect); |
| 457 } | 459 } |
| 458 | 460 |
| 459 } // namespace net | 461 } // namespace net |
| OLD | NEW |