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 | 8 |
9 #include "base/time.h" | 9 #include "base/time.h" |
10 #include "base/values.h" | 10 #include "base/values.h" |
(...skipping 433 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 const std::string& group_name, | 444 const std::string& group_name, |
445 ClientSocketHandle* handle) { | 445 ClientSocketHandle* handle) { |
446 base_.CancelRequest(group_name, handle); | 446 base_.CancelRequest(group_name, handle); |
447 } | 447 } |
448 | 448 |
449 void HttpProxyClientSocketPool::ReleaseSocket(const std::string& group_name, | 449 void HttpProxyClientSocketPool::ReleaseSocket(const std::string& group_name, |
450 StreamSocket* socket, int id) { | 450 StreamSocket* socket, int id) { |
451 base_.ReleaseSocket(group_name, socket, id); | 451 base_.ReleaseSocket(group_name, socket, id); |
452 } | 452 } |
453 | 453 |
454 void HttpProxyClientSocketPool::Flush() { | 454 void HttpProxyClientSocketPool::FlushWithError(int error) { |
455 base_.Flush(); | 455 base_.FlushWithError(error); |
456 } | 456 } |
457 | 457 |
458 bool HttpProxyClientSocketPool::IsStalled() const { | 458 bool HttpProxyClientSocketPool::IsStalled() const { |
459 return base_.IsStalled() || | 459 return base_.IsStalled() || |
460 (transport_pool_ && transport_pool_->IsStalled()) || | 460 (transport_pool_ && transport_pool_->IsStalled()) || |
461 (ssl_pool_ && ssl_pool_->IsStalled()); | 461 (ssl_pool_ && ssl_pool_->IsStalled()); |
462 } | 462 } |
463 | 463 |
464 void HttpProxyClientSocketPool::CloseIdleSockets() { | 464 void HttpProxyClientSocketPool::CloseIdleSockets() { |
465 base_.CloseIdleSockets(); | 465 base_.CloseIdleSockets(); |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
517 return base_.histograms(); | 517 return base_.histograms(); |
518 } | 518 } |
519 | 519 |
520 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { | 520 bool HttpProxyClientSocketPool::CloseOneIdleConnection() { |
521 if (base_.CloseOneIdleSocket()) | 521 if (base_.CloseOneIdleSocket()) |
522 return true; | 522 return true; |
523 return base_.CloseOneIdleConnectionInLayeredPool(); | 523 return base_.CloseOneIdleConnectionInLayeredPool(); |
524 } | 524 } |
525 | 525 |
526 } // namespace net | 526 } // namespace net |
OLD | NEW |