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_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 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 ClientSocketHandle* handle) override; | 140 ClientSocketHandle* handle) override; |
141 | 141 |
142 void ReleaseSocket(const std::string& group_name, | 142 void ReleaseSocket(const std::string& group_name, |
143 std::unique_ptr<StreamSocket> socket, | 143 std::unique_ptr<StreamSocket> socket, |
144 int id) override; | 144 int id) override; |
145 | 145 |
146 void FlushWithError(int error) override; | 146 void FlushWithError(int error) override; |
147 | 147 |
148 void CloseIdleSockets() override; | 148 void CloseIdleSockets() override; |
149 | 149 |
| 150 void CloseIdleSocketsInGroup(const std::string& group_name) override; |
| 151 |
150 int IdleSocketCount() const override; | 152 int IdleSocketCount() const override; |
151 | 153 |
152 int IdleSocketCountInGroup(const std::string& group_name) const override; | 154 int IdleSocketCountInGroup(const std::string& group_name) const override; |
153 | 155 |
154 LoadState GetLoadState(const std::string& group_name, | 156 LoadState GetLoadState(const std::string& group_name, |
155 const ClientSocketHandle* handle) const override; | 157 const ClientSocketHandle* handle) const override; |
156 | 158 |
157 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( | 159 std::unique_ptr<base::DictionaryValue> GetInfoAsValue( |
158 const std::string& name, | 160 const std::string& name, |
159 const std::string& type, | 161 const std::string& type, |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 | 205 |
204 TransportClientSocketPool* const transport_pool_; | 206 TransportClientSocketPool* const transport_pool_; |
205 PoolBase base_; | 207 PoolBase base_; |
206 | 208 |
207 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 209 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
208 }; | 210 }; |
209 | 211 |
210 } // namespace net | 212 } // namespace net |
211 | 213 |
212 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 214 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
OLD | NEW |