| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/values.h" | 8 #include "base/values.h" |
| 9 #include "net/base/ssl_config_service.h" | 9 #include "net/http/http_network_session.h" |
| 10 #include "net/http/http_proxy_client_socket_pool.h" | 10 #include "net/http/http_proxy_client_socket_pool.h" |
| 11 #include "net/http/http_network_session.h" | |
| 12 #include "net/socket/socks_client_socket_pool.h" | 11 #include "net/socket/socks_client_socket_pool.h" |
| 13 #include "net/socket/ssl_client_socket_pool.h" | 12 #include "net/socket/ssl_client_socket_pool.h" |
| 14 #include "net/socket/transport_client_socket_pool.h" | 13 #include "net/socket/transport_client_socket_pool.h" |
| 14 #include "net/ssl/ssl_config_service.h" |
| 15 | 15 |
| 16 namespace net { | 16 namespace net { |
| 17 | 17 |
| 18 namespace { | 18 namespace { |
| 19 | 19 |
| 20 // Appends information about all |socket_pools| to the end of |list|. | 20 // Appends information about all |socket_pools| to the end of |list|. |
| 21 template <class MapType> | 21 template <class MapType> |
| 22 void AddSocketPoolsToList(ListValue* list, | 22 void AddSocketPoolsToList(ListValue* list, |
| 23 const MapType& socket_pools, | 23 const MapType& socket_pools, |
| 24 const std::string& type, | 24 const std::string& type, |
| (...skipping 359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 // We should not flush the socket pools if we added trust to a | 384 // We should not flush the socket pools if we added trust to a |
| 385 // cert. | 385 // cert. |
| 386 // | 386 // |
| 387 // Since the OnCertTrustChanged method doesn't tell us what | 387 // Since the OnCertTrustChanged method doesn't tell us what |
| 388 // kind of trust change it is, we have to flush the socket | 388 // kind of trust change it is, we have to flush the socket |
| 389 // pools to be safe. | 389 // pools to be safe. |
| 390 FlushSocketPoolsWithError(ERR_NETWORK_CHANGED); | 390 FlushSocketPoolsWithError(ERR_NETWORK_CHANGED); |
| 391 } | 391 } |
| 392 | 392 |
| 393 } // namespace net | 393 } // namespace net |
| OLD | NEW |