| 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 DISALLOW_COPY_AND_ASSIGN(SOCKSConnectJob); | 102 DISALLOW_COPY_AND_ASSIGN(SOCKSConnectJob); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 class SOCKSClientSocketPool : public ClientSocketPool { | 105 class SOCKSClientSocketPool : public ClientSocketPool { |
| 106 public: | 106 public: |
| 107 SOCKSClientSocketPool( | 107 SOCKSClientSocketPool( |
| 108 int max_sockets, | 108 int max_sockets, |
| 109 int max_sockets_per_group, | 109 int max_sockets_per_group, |
| 110 const std::string& name, | 110 const std::string& name, |
| 111 const scoped_refptr<HostResolver>& host_resolver, | 111 const scoped_refptr<HostResolver>& host_resolver, |
| 112 const scoped_refptr<TCPClientSocketPool>& tcp_pool); | 112 const scoped_refptr<TCPClientSocketPool>& tcp_pool, |
| 113 NetworkChangeNotifier* network_change_notifier); |
| 113 | 114 |
| 114 // ClientSocketPool methods: | 115 // ClientSocketPool methods: |
| 115 virtual int RequestSocket(const std::string& group_name, | 116 virtual int RequestSocket(const std::string& group_name, |
| 116 const void* connect_params, | 117 const void* connect_params, |
| 117 RequestPriority priority, | 118 RequestPriority priority, |
| 118 ClientSocketHandle* handle, | 119 ClientSocketHandle* handle, |
| 119 CompletionCallback* callback, | 120 CompletionCallback* callback, |
| 120 const BoundNetLog& net_log); | 121 const BoundNetLog& net_log); |
| 121 | 122 |
| 122 virtual void CancelRequest(const std::string& group_name, | 123 virtual void CancelRequest(const std::string& group_name, |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 PoolBase base_; | 177 PoolBase base_; |
| 177 | 178 |
| 178 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); | 179 DISALLOW_COPY_AND_ASSIGN(SOCKSClientSocketPool); |
| 179 }; | 180 }; |
| 180 | 181 |
| 181 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams) | 182 REGISTER_SOCKET_PARAMS_FOR_POOL(SOCKSClientSocketPool, SOCKSSocketParams) |
| 182 | 183 |
| 183 } // namespace net | 184 } // namespace net |
| 184 | 185 |
| 185 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ | 186 #endif // NET_SOCKET_SOCKS_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |