| 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_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 5 #ifndef NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
| 6 #define NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 6 #define NET_HTTP_HTTP_PROXY_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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 124 | 124 |
| 125 // ClientSocketPool methods: | 125 // ClientSocketPool methods: |
| 126 virtual int RequestSocket(const std::string& group_name, | 126 virtual int RequestSocket(const std::string& group_name, |
| 127 const void* connect_params, | 127 const void* connect_params, |
| 128 RequestPriority priority, | 128 RequestPriority priority, |
| 129 ClientSocketHandle* handle, | 129 ClientSocketHandle* handle, |
| 130 CompletionCallback* callback, | 130 CompletionCallback* callback, |
| 131 const BoundNetLog& net_log); | 131 const BoundNetLog& net_log); |
| 132 | 132 |
| 133 virtual void CancelRequest(const std::string& group_name, | 133 virtual void CancelRequest(const std::string& group_name, |
| 134 const ClientSocketHandle* handle); | 134 ClientSocketHandle* handle); |
| 135 | 135 |
| 136 virtual void ReleaseSocket(const std::string& group_name, | 136 virtual void ReleaseSocket(const std::string& group_name, |
| 137 ClientSocket* socket, | 137 ClientSocket* socket, |
| 138 int id); | 138 int id); |
| 139 | 139 |
| 140 virtual void Flush(); | 140 virtual void Flush(); |
| 141 | 141 |
| 142 virtual void CloseIdleSockets(); | 142 virtual void CloseIdleSockets(); |
| 143 | 143 |
| 144 virtual int IdleSocketCount() const { | 144 virtual int IdleSocketCount() const { |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 | 195 |
| 196 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); | 196 DISALLOW_COPY_AND_ASSIGN(HttpProxyClientSocketPool); |
| 197 }; | 197 }; |
| 198 | 198 |
| 199 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, | 199 REGISTER_SOCKET_PARAMS_FOR_POOL(HttpProxyClientSocketPool, |
| 200 HttpProxySocketParams); | 200 HttpProxySocketParams); |
| 201 | 201 |
| 202 } // namespace net | 202 } // namespace net |
| 203 | 203 |
| 204 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ | 204 #endif // NET_HTTP_HTTP_PROXY_CLIENT_SOCKET_POOL_H_ |
| OLD | NEW |