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_SOCKS_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 6 #define NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 virtual void CloseIdleSockets(); | 141 virtual void CloseIdleSockets(); |
142 | 142 |
143 virtual int IdleSocketCount() const; | 143 virtual int IdleSocketCount() const; |
144 | 144 |
145 virtual int IdleSocketCountInGroup(const std::string& group_name) const; | 145 virtual int IdleSocketCountInGroup(const std::string& group_name) const; |
146 | 146 |
147 virtual LoadState GetLoadState(const std::string& group_name, | 147 virtual LoadState GetLoadState(const std::string& group_name, |
148 const ClientSocketHandle* handle) const; | 148 const ClientSocketHandle* handle) const; |
149 | 149 |
150 virtual DictionaryValue* GetInfoAsValue(const std::string& name, | 150 virtual base::DictionaryValue* GetInfoAsValue( |
151 const std::string& type, | 151 const std::string& name, |
152 bool include_nested_pools) const; | 152 const std::string& type, |
| 153 bool include_nested_pools) const; |
153 | 154 |
154 virtual base::TimeDelta ConnectionTimeout() const; | 155 virtual base::TimeDelta ConnectionTimeout() const; |
155 | 156 |
156 virtual ClientSocketPoolHistograms* histograms() const; | 157 virtual ClientSocketPoolHistograms* histograms() const; |
157 | 158 |
158 private: | 159 private: |
159 typedef ClientSocketPoolBase<SOCKSSocketParams> PoolBase; | 160 typedef ClientSocketPoolBase<SOCKSSocketParams> PoolBase; |
160 | 161 |
161 class SOCKSConnectJobFactory : public PoolBase::ConnectJobFactory { | 162 class SOCKSConnectJobFactory : public PoolBase::ConnectJobFactory { |
162 public: | 163 public: |
(...skipping 26 matching lines...) Expand all Loading... |
189 PoolBase base_; | 190 PoolBase base_; |
190 | 191 |
191 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 192 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
192 }; | 193 }; |
193 | 194 |
194 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); | 195 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); |
195 | 196 |
196 } // namespace net | 197 } // namespace net |
197 | 198 |
198 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 199 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |