| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 202 ClientSocketHandle* handle); | 202 ClientSocketHandle* handle); |
| 203 | 203 |
| 204 virtual void ReleaseSocket(const std::string& group_name, | 204 virtual void ReleaseSocket(const std::string& group_name, |
| 205 ClientSocket* socket, | 205 ClientSocket* socket, |
| 206 int id); | 206 int id); |
| 207 | 207 |
| 208 virtual void Flush(); | 208 virtual void Flush(); |
| 209 | 209 |
| 210 virtual void CloseIdleSockets(); | 210 virtual void CloseIdleSockets(); |
| 211 | 211 |
| 212 virtual int IdleSocketCount() const { | 212 virtual int IdleSocketCount() const; |
| 213 return base_.idle_socket_count(); | |
| 214 } | |
| 215 | 213 |
| 216 virtual int IdleSocketCountInGroup(const std::string& group_name) const; | 214 virtual int IdleSocketCountInGroup(const std::string& group_name) const; |
| 217 | 215 |
| 218 virtual LoadState GetLoadState(const std::string& group_name, | 216 virtual LoadState GetLoadState(const std::string& group_name, |
| 219 const ClientSocketHandle* handle) const; | 217 const ClientSocketHandle* handle) const; |
| 220 | 218 |
| 221 virtual DictionaryValue* GetInfoAsValue(const std::string& name, | 219 virtual DictionaryValue* GetInfoAsValue(const std::string& name, |
| 222 const std::string& type, | 220 const std::string& type, |
| 223 bool include_nested_pools) const; | 221 bool include_nested_pools) const; |
| 224 | 222 |
| 225 virtual base::TimeDelta ConnectionTimeout() const { | 223 virtual base::TimeDelta ConnectionTimeout() const; |
| 226 return base_.ConnectionTimeout(); | |
| 227 } | |
| 228 | 224 |
| 229 virtual ClientSocketPoolHistograms* histograms() const { | 225 virtual ClientSocketPoolHistograms* histograms() const; |
| 230 return base_.histograms(); | |
| 231 }; | |
| 232 | 226 |
| 233 private: | 227 private: |
| 234 // SSLConfigService::Observer methods: | 228 // SSLConfigService::Observer methods: |
| 235 | 229 |
| 236 // When the user changes the SSL config, we flush all idle sockets so they | 230 // When the user changes the SSL config, we flush all idle sockets so they |
| 237 // won't get re-used. | 231 // won't get re-used. |
| 238 virtual void OnSSLConfigChanged(); | 232 virtual void OnSSLConfigChanged(); |
| 239 | 233 |
| 240 typedef ClientSocketPoolBase<SSLSocketParams> PoolBase; | 234 typedef ClientSocketPoolBase<SSLSocketParams> PoolBase; |
| 241 | 235 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 284 const scoped_refptr<SSLConfigService> ssl_config_service_; | 278 const scoped_refptr<SSLConfigService> ssl_config_service_; |
| 285 | 279 |
| 286 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); | 280 DISALLOW_COPY_AND_ASSIGN(SSLClientSocketPool); |
| 287 }; | 281 }; |
| 288 | 282 |
| 289 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); | 283 REGISTER_SOCKET_PARAMS_FOR_POOL(SSLClientSocketPool, SSLSocketParams); |
| 290 | 284 |
| 291 } // namespace net | 285 } // namespace net |
| 292 | 286 |
| 293 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ | 287 #endif // NET_SOCKET_SSL_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |