| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_network_session.h" | 5 #include "net/http/http_network_session.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 25 matching lines...) Expand all Loading... |
| 36 params.host_resolver, | 36 params.host_resolver, |
| 37 params.cert_verifier, | 37 params.cert_verifier, |
| 38 params.origin_bound_cert_service, | 38 params.origin_bound_cert_service, |
| 39 params.dnsrr_resolver, | 39 params.dnsrr_resolver, |
| 40 params.dns_cert_checker, | 40 params.dns_cert_checker, |
| 41 params.ssl_host_info_factory, | 41 params.ssl_host_info_factory, |
| 42 params.proxy_service, | 42 params.proxy_service, |
| 43 params.ssl_config_service), | 43 params.ssl_config_service), |
| 44 spdy_session_pool_(params.host_resolver, params.ssl_config_service), | 44 spdy_session_pool_(params.host_resolver, params.ssl_config_service), |
| 45 ALLOW_THIS_IN_INITIALIZER_LIST(http_stream_factory_( | 45 ALLOW_THIS_IN_INITIALIZER_LIST(http_stream_factory_( |
| 46 new HttpStreamFactoryImpl(this))) { | 46 new HttpStreamFactoryImpl(this))), |
| 47 http_pipelined_host_pool_(http_stream_factory_.get()) { |
| 47 DCHECK(params.proxy_service); | 48 DCHECK(params.proxy_service); |
| 48 DCHECK(params.ssl_config_service); | 49 DCHECK(params.ssl_config_service); |
| 49 } | 50 } |
| 50 | 51 |
| 51 HttpNetworkSession::~HttpNetworkSession() { | 52 HttpNetworkSession::~HttpNetworkSession() { |
| 52 STLDeleteElements(&response_drainers_); | 53 STLDeleteElements(&response_drainers_); |
| 53 spdy_session_pool_.CloseAllSessions(); | 54 spdy_session_pool_.CloseAllSessions(); |
| 54 } | 55 } |
| 55 | 56 |
| 56 void HttpNetworkSession::AddResponseDrainer(HttpResponseBodyDrainer* drainer) { | 57 void HttpNetworkSession::AddResponseDrainer(HttpResponseBodyDrainer* drainer) { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 socket_pool_manager_.FlushSocketPools(); | 92 socket_pool_manager_.FlushSocketPools(); |
| 92 spdy_session_pool_.CloseCurrentSessions(); | 93 spdy_session_pool_.CloseCurrentSessions(); |
| 93 } | 94 } |
| 94 | 95 |
| 95 void HttpNetworkSession::CloseIdleConnections() { | 96 void HttpNetworkSession::CloseIdleConnections() { |
| 96 socket_pool_manager_.CloseIdleSockets(); | 97 socket_pool_manager_.CloseIdleSockets(); |
| 97 spdy_session_pool_.CloseIdleSessions(); | 98 spdy_session_pool_.CloseIdleSessions(); |
| 98 } | 99 } |
| 99 | 100 |
| 100 } // namespace net | 101 } // namespace net |
| OLD | NEW |