| 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 22 matching lines...) Expand all Loading... |
| 33 ssl_config_service_(params.ssl_config_service), | 33 ssl_config_service_(params.ssl_config_service), |
| 34 socket_pool_manager_( | 34 socket_pool_manager_( |
| 35 new ClientSocketPoolManagerImpl( | 35 new ClientSocketPoolManagerImpl( |
| 36 params.net_log, | 36 params.net_log, |
| 37 params.client_socket_factory ? | 37 params.client_socket_factory ? |
| 38 params.client_socket_factory : | 38 params.client_socket_factory : |
| 39 ClientSocketFactory::GetDefaultFactory(), | 39 ClientSocketFactory::GetDefaultFactory(), |
| 40 params.host_resolver, | 40 params.host_resolver, |
| 41 params.cert_verifier, | 41 params.cert_verifier, |
| 42 params.origin_bound_cert_service, | 42 params.origin_bound_cert_service, |
| 43 params.dnsrr_resolver, | 43 params.transport_security_state, |
| 44 params.dns_cert_checker, | 44 params.dns_cert_checker, |
| 45 params.ssl_host_info_factory, | 45 params.ssl_host_info_factory, |
| 46 params.proxy_service, | 46 params.proxy_service, |
| 47 params.ssl_config_service)), | 47 params.ssl_config_service)), |
| 48 spdy_session_pool_(params.host_resolver, | 48 spdy_session_pool_(params.host_resolver, |
| 49 params.ssl_config_service, | 49 params.ssl_config_service, |
| 50 params.http_server_properties), | 50 params.http_server_properties), |
| 51 ALLOW_THIS_IN_INITIALIZER_LIST(http_stream_factory_( | 51 ALLOW_THIS_IN_INITIALIZER_LIST(http_stream_factory_( |
| 52 new HttpStreamFactoryImpl(this))) { | 52 new HttpStreamFactoryImpl(this))) { |
| 53 DCHECK(proxy_service_); | 53 DCHECK(proxy_service_); |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 socket_pool_manager_->FlushSocketPools(); | 98 socket_pool_manager_->FlushSocketPools(); |
| 99 spdy_session_pool_.CloseCurrentSessions(); | 99 spdy_session_pool_.CloseCurrentSessions(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void HttpNetworkSession::CloseIdleConnections() { | 102 void HttpNetworkSession::CloseIdleConnections() { |
| 103 socket_pool_manager_->CloseIdleSockets(); | 103 socket_pool_manager_->CloseIdleSockets(); |
| 104 spdy_session_pool_.CloseIdleSessions(); | 104 spdy_session_pool_.CloseIdleSessions(); |
| 105 } | 105 } |
| 106 | 106 |
| 107 } // namespace net | 107 } // namespace net |
| OLD | NEW |