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 436 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 const std::string& group_name, | 447 const std::string& group_name, |
448 StreamSocket* socket, | 448 StreamSocket* socket, |
449 int id) { | 449 int id) { |
450 base_.ReleaseSocket(group_name, socket, id); | 450 base_.ReleaseSocket(group_name, socket, id); |
451 } | 451 } |
452 | 452 |
453 void TransportClientSocketPool::Flush() { | 453 void TransportClientSocketPool::Flush() { |
454 base_.Flush(); | 454 base_.Flush(); |
455 } | 455 } |
456 | 456 |
| 457 bool TransportClientSocketPool::IsStalled() const { |
| 458 return base_.IsStalled(); |
| 459 } |
| 460 |
457 void TransportClientSocketPool::CloseIdleSockets() { | 461 void TransportClientSocketPool::CloseIdleSockets() { |
458 base_.CloseIdleSockets(); | 462 base_.CloseIdleSockets(); |
459 } | 463 } |
460 | 464 |
461 int TransportClientSocketPool::IdleSocketCount() const { | 465 int TransportClientSocketPool::IdleSocketCount() const { |
462 return base_.idle_socket_count(); | 466 return base_.idle_socket_count(); |
463 } | 467 } |
464 | 468 |
465 int TransportClientSocketPool::IdleSocketCountInGroup( | 469 int TransportClientSocketPool::IdleSocketCountInGroup( |
466 const std::string& group_name) const { | 470 const std::string& group_name) const { |
467 return base_.IdleSocketCountInGroup(group_name); | 471 return base_.IdleSocketCountInGroup(group_name); |
468 } | 472 } |
469 | 473 |
470 LoadState TransportClientSocketPool::GetLoadState( | 474 LoadState TransportClientSocketPool::GetLoadState( |
471 const std::string& group_name, const ClientSocketHandle* handle) const { | 475 const std::string& group_name, const ClientSocketHandle* handle) const { |
472 return base_.GetLoadState(group_name, handle); | 476 return base_.GetLoadState(group_name, handle); |
473 } | 477 } |
474 | 478 |
| 479 void TransportClientSocketPool::AddLayeredPool(LayeredPool* layered_pool) { |
| 480 base_.AddLayeredPool(layered_pool); |
| 481 } |
| 482 |
| 483 void TransportClientSocketPool::RemoveLayeredPool(LayeredPool* layered_pool) { |
| 484 base_.RemoveLayeredPool(layered_pool); |
| 485 } |
| 486 |
475 DictionaryValue* TransportClientSocketPool::GetInfoAsValue( | 487 DictionaryValue* TransportClientSocketPool::GetInfoAsValue( |
476 const std::string& name, | 488 const std::string& name, |
477 const std::string& type, | 489 const std::string& type, |
478 bool include_nested_pools) const { | 490 bool include_nested_pools) const { |
479 return base_.GetInfoAsValue(name, type); | 491 return base_.GetInfoAsValue(name, type); |
480 } | 492 } |
481 | 493 |
482 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { | 494 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { |
483 return base_.ConnectionTimeout(); | 495 return base_.ConnectionTimeout(); |
484 } | 496 } |
485 | 497 |
486 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { | 498 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { |
487 return base_.histograms(); | 499 return base_.histograms(); |
488 } | 500 } |
489 | 501 |
490 } // namespace net | 502 } // namespace net |
OLD | NEW |