| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 }; | 106 }; |
| 107 | 107 |
| 108 class NET_EXPORT_PRIVATE SOCKSClientSocketPool : public ClientSocketPool { | 108 class NET_EXPORT_PRIVATE SOCKSClientSocketPool : public ClientSocketPool { |
| 109 public: | 109 public: |
| 110 SOCKSClientSocketPool( | 110 SOCKSClientSocketPool( |
| 111 int max_sockets, | 111 int max_sockets, |
| 112 int max_sockets_per_group, | 112 int max_sockets_per_group, |
| 113 ClientSocketPoolHistograms* histograms, | 113 ClientSocketPoolHistograms* histograms, |
| 114 HostResolver* host_resolver, | 114 HostResolver* host_resolver, |
| 115 TransportClientSocketPool* transport_pool, | 115 TransportClientSocketPool* transport_pool, |
| 116 NetLog* net_log); | 116 NetLog* net_log, |
| 117 const ClientSocketPoolOptions& options = ClientSocketPoolOptions()); |
| 117 | 118 |
| 118 virtual ~SOCKSClientSocketPool(); | 119 virtual ~SOCKSClientSocketPool(); |
| 119 | 120 |
| 120 // ClientSocketPool methods: | 121 // ClientSocketPool methods: |
| 121 virtual int RequestSocket(const std::string& group_name, | 122 virtual int RequestSocket(const std::string& group_name, |
| 122 const void* connect_params, | 123 const void* connect_params, |
| 123 RequestPriority priority, | 124 RequestPriority priority, |
| 124 ClientSocketHandle* handle, | 125 ClientSocketHandle* handle, |
| 125 OldCompletionCallback* callback, | 126 OldCompletionCallback* callback, |
| 126 const BoundNetLog& net_log); | 127 const BoundNetLog& net_log); |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 PoolBase base_; | 192 PoolBase base_; |
| 192 | 193 |
| 193 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 194 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
| 194 }; | 195 }; |
| 195 | 196 |
| 196 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); | 197 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); |
| 197 | 198 |
| 198 } // namespace net | 199 } // namespace net |
| 199 | 200 |
| 200 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 201 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |