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 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 5 #ifndef NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
6 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 6 #define NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <memory> | 9 #include <memory> |
| 10 #include <string> |
10 #include <type_traits> | 11 #include <type_traits> |
11 | 12 |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
13 #include "base/macros.h" | 14 #include "base/macros.h" |
14 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
15 #include "base/threading/non_thread_safe.h" | 16 #include "base/threading/non_thread_safe.h" |
16 #include "net/cert/cert_database.h" | 17 #include "net/cert/cert_database.h" |
17 #include "net/http/http_network_session.h" | 18 #include "net/http/http_network_session.h" |
18 #include "net/socket/client_socket_pool_manager.h" | 19 #include "net/socket/client_socket_pool_manager.h" |
19 | 20 |
| 21 namespace base { |
| 22 namespace trace_event { |
| 23 class ProcessMemoryDump; |
| 24 } |
| 25 } |
| 26 |
20 namespace net { | 27 namespace net { |
21 | 28 |
22 class CertVerifier; | 29 class CertVerifier; |
23 class ChannelIDService; | 30 class ChannelIDService; |
24 class ClientSocketFactory; | 31 class ClientSocketFactory; |
25 class CTVerifier; | 32 class CTVerifier; |
26 class HttpProxyClientSocketPool; | 33 class HttpProxyClientSocketPool; |
27 class HostResolver; | 34 class HostResolver; |
28 class NetLog; | 35 class NetLog; |
29 class SocketPerformanceWatcherFactory; | 36 class SocketPerformanceWatcherFactory; |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 | 74 |
68 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( | 75 SSLClientSocketPool* GetSocketPoolForSSLWithProxy( |
69 const HostPortPair& proxy_server) override; | 76 const HostPortPair& proxy_server) override; |
70 | 77 |
71 // Creates a Value summary of the state of the socket pools. | 78 // Creates a Value summary of the state of the socket pools. |
72 std::unique_ptr<base::Value> SocketPoolInfoToValue() const override; | 79 std::unique_ptr<base::Value> SocketPoolInfoToValue() const override; |
73 | 80 |
74 // CertDatabase::Observer methods: | 81 // CertDatabase::Observer methods: |
75 void OnCertDBChanged(const X509Certificate* cert) override; | 82 void OnCertDBChanged(const X509Certificate* cert) override; |
76 | 83 |
| 84 void DumpMemoryStats( |
| 85 base::trace_event::ProcessMemoryDump* pmd, |
| 86 const std::string& parent_dump_absolute_name) const override; |
| 87 |
77 private: | 88 private: |
78 using TransportSocketPoolMap = | 89 using TransportSocketPoolMap = |
79 std::map<HostPortPair, std::unique_ptr<TransportClientSocketPool>>; | 90 std::map<HostPortPair, std::unique_ptr<TransportClientSocketPool>>; |
80 using SOCKSSocketPoolMap = | 91 using SOCKSSocketPoolMap = |
81 std::map<HostPortPair, std::unique_ptr<SOCKSClientSocketPool>>; | 92 std::map<HostPortPair, std::unique_ptr<SOCKSClientSocketPool>>; |
82 using HTTPProxySocketPoolMap = | 93 using HTTPProxySocketPoolMap = |
83 std::map<HostPortPair, std::unique_ptr<HttpProxyClientSocketPool>>; | 94 std::map<HostPortPair, std::unique_ptr<HttpProxyClientSocketPool>>; |
84 using SSLSocketPoolMap = | 95 using SSLSocketPoolMap = |
85 std::map<HostPortPair, std::unique_ptr<SSLClientSocketPool>>; | 96 std::map<HostPortPair, std::unique_ptr<SSLClientSocketPool>>; |
86 | 97 |
(...skipping 21 matching lines...) Expand all Loading... |
108 SSLSocketPoolMap ssl_socket_pools_for_https_proxies_; | 119 SSLSocketPoolMap ssl_socket_pools_for_https_proxies_; |
109 HTTPProxySocketPoolMap http_proxy_socket_pools_; | 120 HTTPProxySocketPoolMap http_proxy_socket_pools_; |
110 SSLSocketPoolMap ssl_socket_pools_for_proxies_; | 121 SSLSocketPoolMap ssl_socket_pools_for_proxies_; |
111 | 122 |
112 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); | 123 DISALLOW_COPY_AND_ASSIGN(ClientSocketPoolManagerImpl); |
113 }; | 124 }; |
114 | 125 |
115 } // namespace net | 126 } // namespace net |
116 | 127 |
117 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ | 128 #endif // NET_SOCKET_CLIENT_SOCKET_POOL_MANAGER_IMPL_H_ |
OLD | NEW |