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/ssl_client_socket_pool.h" | 5 #include "net/socket/ssl_client_socket_pool.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
(...skipping 582 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
593 } | 593 } |
594 | 594 |
595 void SSLClientSocketPool::FlushWithError(int error) { | 595 void SSLClientSocketPool::FlushWithError(int error) { |
596 base_.FlushWithError(error); | 596 base_.FlushWithError(error); |
597 } | 597 } |
598 | 598 |
599 void SSLClientSocketPool::CloseIdleSockets() { | 599 void SSLClientSocketPool::CloseIdleSockets() { |
600 base_.CloseIdleSockets(); | 600 base_.CloseIdleSockets(); |
601 } | 601 } |
602 | 602 |
| 603 void SSLClientSocketPool::CloseIdleSocketsInGroup( |
| 604 const std::string& group_name) { |
| 605 base_.CloseIdleSocketsInGroup(group_name); |
| 606 } |
| 607 |
603 int SSLClientSocketPool::IdleSocketCount() const { | 608 int SSLClientSocketPool::IdleSocketCount() const { |
604 return base_.idle_socket_count(); | 609 return base_.idle_socket_count(); |
605 } | 610 } |
606 | 611 |
607 int SSLClientSocketPool::IdleSocketCountInGroup( | 612 int SSLClientSocketPool::IdleSocketCountInGroup( |
608 const std::string& group_name) const { | 613 const std::string& group_name) const { |
609 return base_.IdleSocketCountInGroup(group_name); | 614 return base_.IdleSocketCountInGroup(group_name); |
610 } | 615 } |
611 | 616 |
612 LoadState SSLClientSocketPool::GetLoadState( | 617 LoadState SSLClientSocketPool::GetLoadState( |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
668 if (base_.CloseOneIdleSocket()) | 673 if (base_.CloseOneIdleSocket()) |
669 return true; | 674 return true; |
670 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 675 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
671 } | 676 } |
672 | 677 |
673 void SSLClientSocketPool::OnSSLConfigChanged() { | 678 void SSLClientSocketPool::OnSSLConfigChanged() { |
674 FlushWithError(ERR_NETWORK_CHANGED); | 679 FlushWithError(ERR_NETWORK_CHANGED); |
675 } | 680 } |
676 | 681 |
677 } // namespace net | 682 } // namespace net |
OLD | NEW |