| 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 588 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 599 } | 599 } |
| 600 | 600 |
| 601 void SSLClientSocketPool::FlushWithError(int error) { | 601 void SSLClientSocketPool::FlushWithError(int error) { |
| 602 base_.FlushWithError(error); | 602 base_.FlushWithError(error); |
| 603 } | 603 } |
| 604 | 604 |
| 605 void SSLClientSocketPool::CloseIdleSockets() { | 605 void SSLClientSocketPool::CloseIdleSockets() { |
| 606 base_.CloseIdleSockets(); | 606 base_.CloseIdleSockets(); |
| 607 } | 607 } |
| 608 | 608 |
| 609 void SSLClientSocketPool::CloseIdleSocketsInGroup( |
| 610 const std::string& group_name) { |
| 611 base_.CloseIdleSocketsInGroup(group_name); |
| 612 } |
| 613 |
| 609 int SSLClientSocketPool::IdleSocketCount() const { | 614 int SSLClientSocketPool::IdleSocketCount() const { |
| 610 return base_.idle_socket_count(); | 615 return base_.idle_socket_count(); |
| 611 } | 616 } |
| 612 | 617 |
| 613 int SSLClientSocketPool::IdleSocketCountInGroup( | 618 int SSLClientSocketPool::IdleSocketCountInGroup( |
| 614 const std::string& group_name) const { | 619 const std::string& group_name) const { |
| 615 return base_.IdleSocketCountInGroup(group_name); | 620 return base_.IdleSocketCountInGroup(group_name); |
| 616 } | 621 } |
| 617 | 622 |
| 618 LoadState SSLClientSocketPool::GetLoadState( | 623 LoadState SSLClientSocketPool::GetLoadState( |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 674 if (base_.CloseOneIdleSocket()) | 679 if (base_.CloseOneIdleSocket()) |
| 675 return true; | 680 return true; |
| 676 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 681 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 677 } | 682 } |
| 678 | 683 |
| 679 void SSLClientSocketPool::OnSSLConfigChanged() { | 684 void SSLClientSocketPool::OnSSLConfigChanged() { |
| 680 FlushWithError(ERR_NETWORK_CHANGED); | 685 FlushWithError(ERR_NETWORK_CHANGED); |
| 681 } | 686 } |
| 682 | 687 |
| 683 } // namespace net | 688 } // namespace net |
| OLD | NEW |