| 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 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 | 234 |
| 235 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); | 235 base_.RequestSockets(group_name, *casted_params, num_sockets, net_log); |
| 236 } | 236 } |
| 237 | 237 |
| 238 void HttpProxyClientSocketPool::CancelRequest( | 238 void HttpProxyClientSocketPool::CancelRequest( |
| 239 const std::string& group_name, | 239 const std::string& group_name, |
| 240 ClientSocketHandle* handle) { | 240 ClientSocketHandle* handle) { |
| 241 base_.CancelRequest(group_name, handle); | 241 base_.CancelRequest(group_name, handle); |
| 242 } | 242 } |
| 243 | 243 |
| 244 void HttpProxyClientSocketPool::SetPriority(const std::string& group_name, |
| 245 ClientSocketHandle* handle, |
| 246 RequestPriority priority) { |
| 247 base_.SetPriority(group_name, handle, priority); |
| 248 } |
| 249 |
| 244 void HttpProxyClientSocketPool::ReleaseSocket( | 250 void HttpProxyClientSocketPool::ReleaseSocket( |
| 245 const std::string& group_name, | 251 const std::string& group_name, |
| 246 std::unique_ptr<StreamSocket> socket, | 252 std::unique_ptr<StreamSocket> socket, |
| 247 int id) { | 253 int id) { |
| 248 base_.ReleaseSocket(group_name, std::move(socket), id); | 254 base_.ReleaseSocket(group_name, std::move(socket), id); |
| 249 } | 255 } |
| 250 | 256 |
| 251 void HttpProxyClientSocketPool::FlushWithError(int error) { | 257 void HttpProxyClientSocketPool::FlushWithError(int error) { |
| 252 base_.FlushWithError(error); | 258 base_.FlushWithError(error); |
| 253 } | 259 } |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 310 base_.RemoveHigherLayeredPool(higher_pool); | 316 base_.RemoveHigherLayeredPool(higher_pool); |
| 311 } | 317 } |
| 312 | 318 |
| 313 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 319 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
| 314 if (base_.CloseOneIdleSocket()) | 320 if (base_.CloseOneIdleSocket()) |
| 315 return true; | 321 return true; |
| 316 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 322 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 317 } | 323 } |
| 318 | 324 |
| 319 } // namespace net | 325 } // namespace net |
| OLD | NEW |