OLD | NEW |
1 // Copyright (c) 2012 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" |
11 #include "base/string_util.h" | 11 #include "base/string_util.h" |
(...skipping 430 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 |
452 void TransportClientSocketPool::CloseIdleSockets() { | 456 void TransportClientSocketPool::CloseIdleSockets() { |
453 base_.CloseIdleSockets(); | 457 base_.CloseIdleSockets(); |
454 } | 458 } |
455 | 459 |
456 int TransportClientSocketPool::IdleSocketCount() const { | 460 int TransportClientSocketPool::IdleSocketCount() const { |
457 return base_.idle_socket_count(); | 461 return base_.idle_socket_count(); |
458 } | 462 } |
459 | 463 |
460 int TransportClientSocketPool::IdleSocketCountInGroup( | 464 int TransportClientSocketPool::IdleSocketCountInGroup( |
461 const std::string& group_name) const { | 465 const std::string& group_name) const { |
462 return base_.IdleSocketCountInGroup(group_name); | 466 return base_.IdleSocketCountInGroup(group_name); |
463 } | 467 } |
464 | 468 |
465 LoadState TransportClientSocketPool::GetLoadState( | 469 LoadState TransportClientSocketPool::GetLoadState( |
466 const std::string& group_name, const ClientSocketHandle* handle) const { | 470 const std::string& group_name, const ClientSocketHandle* handle) const { |
467 return base_.GetLoadState(group_name, handle); | 471 return base_.GetLoadState(group_name, handle); |
468 } | 472 } |
469 | 473 |
| 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 |
470 DictionaryValue* TransportClientSocketPool::GetInfoAsValue( | 482 DictionaryValue* TransportClientSocketPool::GetInfoAsValue( |
471 const std::string& name, | 483 const std::string& name, |
472 const std::string& type, | 484 const std::string& type, |
473 bool include_nested_pools) const { | 485 bool include_nested_pools) const { |
474 return base_.GetInfoAsValue(name, type); | 486 return base_.GetInfoAsValue(name, type); |
475 } | 487 } |
476 | 488 |
477 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { | 489 base::TimeDelta TransportClientSocketPool::ConnectionTimeout() const { |
478 return base_.ConnectionTimeout(); | 490 return base_.ConnectionTimeout(); |
479 } | 491 } |
480 | 492 |
481 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { | 493 ClientSocketPoolHistograms* TransportClientSocketPool::histograms() const { |
482 return base_.histograms(); | 494 return base_.histograms(); |
483 } | 495 } |
484 | 496 |
485 } // namespace net | 497 } // namespace net |
OLD | NEW |