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