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