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