| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 RespectLimits respect_limits, | 125 RespectLimits respect_limits, |
| 126 ClientSocketHandle* handle, | 126 ClientSocketHandle* handle, |
| 127 const CompletionCallback& callback, | 127 const CompletionCallback& callback, |
| 128 const NetLogWithSource& net_log) override; | 128 const NetLogWithSource& net_log) override; |
| 129 | 129 |
| 130 void RequestSockets(const std::string& group_name, | 130 void RequestSockets(const std::string& group_name, |
| 131 const void* params, | 131 const void* params, |
| 132 int num_sockets, | 132 int num_sockets, |
| 133 const NetLogWithSource& net_log) override; | 133 const NetLogWithSource& net_log) override; |
| 134 | 134 |
| 135 void SetPriority(const std::string& group_name, |
| 136 ClientSocketHandle* handle, |
| 137 RequestPriority priority) override; |
| 138 |
| 135 void CancelRequest(const std::string& group_name, | 139 void CancelRequest(const std::string& group_name, |
| 136 ClientSocketHandle* handle) override; | 140 ClientSocketHandle* handle) override; |
| 137 | 141 |
| 138 void ReleaseSocket(const std::string& group_name, | 142 void ReleaseSocket(const std::string& group_name, |
| 139 std::unique_ptr<StreamSocket> socket, | 143 std::unique_ptr<StreamSocket> socket, |
| 140 int id) override; | 144 int id) override; |
| 141 | 145 |
| 142 void FlushWithError(int error) override; | 146 void FlushWithError(int error) override; |
| 143 | 147 |
| 144 void CloseIdleSockets() override; | 148 void CloseIdleSockets() override; |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 199 | 203 |
| 200 TransportClientSocketPool* const transport_pool_; | 204 TransportClientSocketPool* const transport_pool_; |
| 201 PoolBase base_; | 205 PoolBase base_; |
| 202 | 206 |
| 203 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 207 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
| 204 }; | 208 }; |
| 205 | 209 |
| 206 } // namespace net | 210 } // namespace net |
| 207 | 211 |
| 208 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 212 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |