| 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 #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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 } | 415 } |
| 416 | 416 |
| 417 void HttpProxyClientSocketPool::Flush() { | 417 void HttpProxyClientSocketPool::Flush() { |
| 418 base_.Flush(); | 418 base_.Flush(); |
| 419 } | 419 } |
| 420 | 420 |
| 421 void HttpProxyClientSocketPool::CloseIdleSockets() { | 421 void HttpProxyClientSocketPool::CloseIdleSockets() { |
| 422 base_.CloseIdleSockets(); | 422 base_.CloseIdleSockets(); |
| 423 } | 423 } |
| 424 | 424 |
| 425 int HttpProxyClientSocketPool::IdleSocketCount() const { |
| 426 return base_.idle_socket_count(); |
| 427 } |
| 428 |
| 425 int HttpProxyClientSocketPool::IdleSocketCountInGroup( | 429 int HttpProxyClientSocketPool::IdleSocketCountInGroup( |
| 426 const std::string& group_name) const { | 430 const std::string& group_name) const { |
| 427 return base_.IdleSocketCountInGroup(group_name); | 431 return base_.IdleSocketCountInGroup(group_name); |
| 428 } | 432 } |
| 429 | 433 |
| 430 LoadState HttpProxyClientSocketPool::GetLoadState( | 434 LoadState HttpProxyClientSocketPool::GetLoadState( |
| 431 const std::string& group_name, const ClientSocketHandle* handle) const { | 435 const std::string& group_name, const ClientSocketHandle* handle) const { |
| 432 return base_.GetLoadState(group_name, handle); | 436 return base_.GetLoadState(group_name, handle); |
| 433 } | 437 } |
| 434 | 438 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 447 if (ssl_pool_) { | 451 if (ssl_pool_) { |
| 448 list->Append(ssl_pool_->GetInfoAsValue("ssl_socket_pool", | 452 list->Append(ssl_pool_->GetInfoAsValue("ssl_socket_pool", |
| 449 "ssl_socket_pool", | 453 "ssl_socket_pool", |
| 450 true)); | 454 true)); |
| 451 } | 455 } |
| 452 dict->Set("nested_pools", list); | 456 dict->Set("nested_pools", list); |
| 453 } | 457 } |
| 454 return dict; | 458 return dict; |
| 455 } | 459 } |
| 456 | 460 |
| 461 base::TimeDelta HttpProxyClientSocketPool::ConnectionTimeout() const { |
| 462 return base_.ConnectionTimeout(); |
| 463 } |
| 464 |
| 465 ClientSocketPoolHistograms* HttpProxyClientSocketPool::histograms() const { |
| 466 return base_.histograms(); |
| 467 } |
| 468 |
| 457 } // namespace net | 469 } // namespace net |
| OLD | NEW |