| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "net/http/http_proxy_client_socket_pool.h" | 5 #include "net/http/http_proxy_client_socket_pool.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 238 | 238 |
| 239 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); | 239 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); |
| 240 } | 240 } |
| 241 | 241 |
| 242 void HttpProxyClientSocketPool::CancelRequest( | 242 void HttpProxyClientSocketPool::CancelRequest( |
| 243 const std::string& group_name, | 243 const std::string& group_name, |
| 244 ClientSocketHandle* handle) { | 244 ClientSocketHandle* handle) { |
| 245 base_.CancelRequest(group_name, handle); | 245 base_.CancelRequest(group_name, handle); |
| 246 } | 246 } |
| 247 | 247 |
| 248 void HttpProxyClientSocketPool::SetPriority(const std::string& group_name, |
| 249 ClientSocketHandle* handle, |
| 250 RequestPriority priority) { |
| 251 base_.SetPriority(group_name, handle, priority); |
| 252 } |
| 253 |
| 248 void HttpProxyClientSocketPool::ReleaseSocket( | 254 void HttpProxyClientSocketPool::ReleaseSocket( |
| 249 const std::string& group_name, | 255 const std::string& group_name, |
| 250 std::unique_ptr<StreamSocket> socket, | 256 std::unique_ptr<StreamSocket> socket, |
| 251 int id) { | 257 int id) { |
| 252 base_.ReleaseSocket(group_name, std::move(socket), id); | 258 base_.ReleaseSocket(group_name, std::move(socket), id); |
| 253 } | 259 } |
| 254 | 260 |
| 255 void HttpProxyClientSocketPool::FlushWithError(int error) { | 261 void HttpProxyClientSocketPool::FlushWithError(int error) { |
| 256 base_.FlushWithError(error); | 262 base_.FlushWithError(error); |
| 257 } | 263 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 base_.RemoveHigherLayeredPool(higher_pool); | 320 base_.RemoveHigherLayeredPool(higher_pool); |
| 315 } | 321 } |
| 316 | 322 |
| 317 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 323 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
| 318 if (base_.CloseOneIdleSocket()) | 324 if (base_.CloseOneIdleSocket()) |
| 319 return true; | 325 return true; |
| 320 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 326 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 321 } | 327 } |
| 322 | 328 |
| 323 } // namespace net | 329 } // namespace net |
| OLD | NEW |