| 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/socket/client_socket_pool_manager_impl.h" | 5 #include "net/socket/client_socket_pool_manager_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 socket_factory, | 91 socket_factory, |
| 92 transport_socket_pool_.get(), | 92 transport_socket_pool_.get(), |
| 93 nullptr /* no socks proxy */, | 93 nullptr /* no socks proxy */, |
| 94 nullptr /* no http proxy */, | 94 nullptr /* no http proxy */, |
| 95 ssl_config_service, | 95 ssl_config_service, |
| 96 net_log)) { | 96 net_log)) { |
| 97 CertDatabase::GetInstance()->AddObserver(this); | 97 CertDatabase::GetInstance()->AddObserver(this); |
| 98 } | 98 } |
| 99 | 99 |
| 100 ClientSocketPoolManagerImpl::~ClientSocketPoolManagerImpl() { | 100 ClientSocketPoolManagerImpl::~ClientSocketPoolManagerImpl() { |
| 101 DCHECK_CALLED_ON_VALID_THREAD(thread_checker_); |
| 101 CertDatabase::GetInstance()->RemoveObserver(this); | 102 CertDatabase::GetInstance()->RemoveObserver(this); |
| 102 } | 103 } |
| 103 | 104 |
| 104 void ClientSocketPoolManagerImpl::FlushSocketPoolsWithError(int error) { | 105 void ClientSocketPoolManagerImpl::FlushSocketPoolsWithError(int error) { |
| 105 // Flush the highest level pools first, since higher level pools may release | 106 // Flush the highest level pools first, since higher level pools may release |
| 106 // stuff to the lower level pools. | 107 // stuff to the lower level pools. |
| 107 | 108 |
| 108 for (SSLSocketPoolMap::const_iterator it = | 109 for (SSLSocketPoolMap::const_iterator it = |
| 109 ssl_socket_pools_for_proxies_.begin(); | 110 ssl_socket_pools_for_proxies_.begin(); |
| 110 it != ssl_socket_pools_for_proxies_.end(); | 111 it != ssl_socket_pools_for_proxies_.end(); |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 360 FlushSocketPoolsWithError(ERR_NETWORK_CHANGED); | 361 FlushSocketPoolsWithError(ERR_NETWORK_CHANGED); |
| 361 } | 362 } |
| 362 | 363 |
| 363 void ClientSocketPoolManagerImpl::DumpMemoryStats( | 364 void ClientSocketPoolManagerImpl::DumpMemoryStats( |
| 364 base::trace_event::ProcessMemoryDump* pmd, | 365 base::trace_event::ProcessMemoryDump* pmd, |
| 365 const std::string& parent_dump_absolute_name) const { | 366 const std::string& parent_dump_absolute_name) const { |
| 366 return ssl_socket_pool_->DumpMemoryStats(pmd, parent_dump_absolute_name); | 367 return ssl_socket_pool_->DumpMemoryStats(pmd, parent_dump_absolute_name); |
| 367 } | 368 } |
| 368 | 369 |
| 369 } // namespace net | 370 } // namespace net |
| OLD | NEW |