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 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
217 | 217 |
218 virtual void CloseIdleSockets(); | 218 virtual void CloseIdleSockets(); |
219 | 219 |
220 virtual int IdleSocketCount() const; | 220 virtual int IdleSocketCount() const; |
221 | 221 |
222 virtual int IdleSocketCountInGroup(const std::string& group_name) const; | 222 virtual int IdleSocketCountInGroup(const std::string& group_name) const; |
223 | 223 |
224 virtual LoadState GetLoadState(const std::string& group_name, | 224 virtual LoadState GetLoadState(const std::string& group_name, |
225 const ClientSocketHandle* handle) const; | 225 const ClientSocketHandle* handle) const; |
226 | 226 |
227 virtual DictionaryValue* GetInfoAsValue(const std::string& name, | 227 virtual base::DictionaryValue* GetInfoAsValue( |
228 const std::string& type, | 228 const std::string& name, |
229 bool include_nested_pools) const; | 229 const std::string& type, |
| 230 bool include_nested_pools) const; |
230 | 231 |
231 virtual base::TimeDelta ConnectionTimeout() const; | 232 virtual base::TimeDelta ConnectionTimeout() const; |
232 | 233 |
233 virtual ClientSocketPoolHistograms* histograms() const; | 234 virtual ClientSocketPoolHistograms* histograms() const; |
234 | 235 |
235 private: | 236 private: |
236 typedef ClientSocketPoolBase<SSLSocketParams> PoolBase; | 237 typedef ClientSocketPoolBase<SSLSocketParams> PoolBase; |
237 | 238 |
238 // SSLConfigService::Observer methods: | 239 // SSLConfigService::Observer methods: |
239 | 240 |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
288 const scoped_refptr<SSLConfigService> ssl_config_service_; | 289 const scoped_refptr<SSLConfigService> ssl_config_service_; |
289 | 290 |
290 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 291 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
291 }; | 292 }; |
292 | 293 |
293 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 294 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
294 | 295 |
295 } // namespace net | 296 } // namespace net |
296 | 297 |
297 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 298 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |