| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 }; | 104 }; |
| 105 | 105 |
| 106 class SOCKSClientSocketPool : public ClientSocketPool { | 106 class SOCKSClientSocketPool : public ClientSocketPool { |
| 107 public: | 107 public: |
| 108 SOCKSClientSocketPool( | 108 SOCKSClientSocketPool( |
| 109 int max_sockets, | 109 int max_sockets, |
| 110 int max_sockets_per_group, | 110 int max_sockets_per_group, |
| 111 const scoped_refptr<ClientSocketPoolHistograms>& histograms, | 111 const scoped_refptr<ClientSocketPoolHistograms>& histograms, |
| 112 const scoped_refptr<HostResolver>& host_resolver, | 112 const scoped_refptr<HostResolver>& host_resolver, |
| 113 const scoped_refptr<TCPClientSocketPool>& tcp_pool, | 113 const scoped_refptr<TCPClientSocketPool>& tcp_pool, |
| 114 NetworkChangeNotifier* network_change_notifier, | |
| 115 NetLog* net_log); | 114 NetLog* net_log); |
| 116 | 115 |
| 117 // ClientSocketPool methods: | 116 // ClientSocketPool methods: |
| 118 virtual int RequestSocket(const std::string& group_name, | 117 virtual int RequestSocket(const std::string& group_name, |
| 119 const void* connect_params, | 118 const void* connect_params, |
| 120 RequestPriority priority, | 119 RequestPriority priority, |
| 121 ClientSocketHandle* handle, | 120 ClientSocketHandle* handle, |
| 122 CompletionCallback* callback, | 121 CompletionCallback* callback, |
| 123 const BoundNetLog& net_log); | 122 const BoundNetLog& net_log); |
| 124 | 123 |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 186 PoolBase base_; | 185 PoolBase base_; |
| 187 | 186 |
| 188 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 187 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
| 189 }; | 188 }; |
| 190 | 189 |
| 191 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); | 190 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams); |
| 192 | 191 |
| 193 } // namespace net | 192 } // namespace net |
| 194 | 193 |
| 195 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 194 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |