| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/socket/transport_client_socket_pool.h" | 5 #include "net/socket/transport_client_socket_pool.h" |
| 6 | 6 |
| 7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
| 10 #include "base/metrics/histogram.h" | 10 #include "base/metrics/histogram.h" |
| (...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 443 const std::string& group_name, | 443 const std::string& group_name, |
| 444 StreamSocket* socket, | 444 StreamSocket* socket, |
| 445 int id) { | 445 int id) { |
| 446 base_.ReleaseSocket(group_name, socket, id); | 446 base_.ReleaseSocket(group_name, socket, id); |
| 447 } | 447 } |
| 448 | 448 |
| 449 void TransportClientSocketPool::Flush() { | 449 void TransportClientSocketPool::Flush() { |
| 450 base_.Flush(); | 450 base_.Flush(); |
| 451 } | 451 } |
| 452 | 452 |
| 453 bool TransportClientSocketPool::IsStalled() const { |
| 454 return base_.IsStalled(); |
| 455 } |
| 456 |
| 453 void TransportClientSocketPool::CloseIdleSockets() { | 457 void TransportClientSocketPool::CloseIdleSockets() { |
| 454 base_.CloseIdleSockets(); | 458 base_.CloseIdleSockets(); |
| 455 } | 459 } |
| 456 | 460 |
| 457 int TransportClientSocketPool::IdleSocketCount() const { | 461 int TransportClientSocketPool::IdleSocketCount() const { |
| 458 return base_.idle_socket_count(); | 462 return base_.idle_socket_count(); |
| 459 } | 463 } |
| 460 | 464 |
| 461 int TransportClientSocketPool::IdleSocketCountInGroup( | 465 int TransportClientSocketPool::IdleSocketCountInGroup( |
| 462 const std::string& group_name) const { | 466 const std::string& group_name) const { |
| 463 return base_.IdleSocketCountInGroup(group_name); | 467 return base_.IdleSocketCountInGroup(group_name); |
| 464 } | 468 } |
| 465 | 469 |
| 466 LoadState TransportClientSocketPool::GetLoadState( | 470 LoadState TransportClientSocketPool::GetLoadState( |
| 467 const std::string& group_name, const ClientSocketHandle* handle) const { | 471 const std::string& group_name, const ClientSocketHandle* handle) const { |
| 468 return base_.GetLoadState(group_name, handle); | 472 return base_.GetLoadState(group_name, handle); |
| 469 } | 473 } |
| 470 | 474 |
| 475 void TransportClientSocketPool::AddLayeredPool(LayeredPool* layered_pool) { |
| 476 base_.AddLayeredPool(layered_pool); |
| 477 } |
| 478 |
| 479 void TransportClientSocketPool::RemoveLayeredPool(LayeredPool* layered_pool) { |
| 480 base_.RemoveLayeredPool(layered_pool); |
| 481 } |
| 482 |
| 471 DictionaryValue* TransportClientSocketPool::GetInfoAsValue( | 483 DictionaryValue* TransportClientSocketPool::GetInfoAsValue( |
| 472 const std::string& name, | 484 const std::string& name, |
| 473 const std::string& type, | 485 const std::string& type, |
| 474 bool include_nested_pools) const { | 486 bool include_nested_pools) const { |
| 475 return base_.GetInfoAsValue(name, type); | 487 return base_.GetInfoAsValue(name, type); |
| 476 } | 488 } |
| 477 | 489 |
| 478 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { | 490 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { |
| 479 return base_.ConnectionTimeout(); | 491 return base_.ConnectionTimeout(); |
| 480 } | 492 } |
| 481 | 493 |
| 482 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { | 494 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { |
| 483 return base_.histograms(); | 495 return base_.histograms(); |
| 484 } | 496 } |
| 485 | 497 |
| 486 } // namespace net | 498 } // namespace net |
| OLD | NEW |