| 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 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 630 int SSLClientSocketPool::IdleSocketCountInGroup( | 630 int SSLClientSocketPool::IdleSocketCountInGroup( |
| 631 const std::string& group_name) const { | 631 const std::string& group_name) const { |
| 632 return base_.IdleSocketCountInGroup(group_name); | 632 return base_.IdleSocketCountInGroup(group_name); |
| 633 } | 633 } |
| 634 | 634 |
| 635 LoadState SSLClientSocketPool::GetLoadState( | 635 LoadState SSLClientSocketPool::GetLoadState( |
| 636 const std::string& group_name, const ClientSocketHandle* handle) const { | 636 const std::string& group_name, const ClientSocketHandle* handle) const { |
| 637 return base_.GetLoadState(group_name, handle); | 637 return base_.GetLoadState(group_name, handle); |
| 638 } | 638 } |
| 639 | 639 |
| 640 void SSLClientSocketPool::PopulateAllocatorDump( |
| 641 base::trace_event::MemoryAllocatorDump* dump) const { |
| 642 base_.PopulateAllocatorDump(dump); |
| 643 } |
| 644 |
| 640 std::unique_ptr<base::DictionaryValue> SSLClientSocketPool::GetInfoAsValue( | 645 std::unique_ptr<base::DictionaryValue> SSLClientSocketPool::GetInfoAsValue( |
| 641 const std::string& name, | 646 const std::string& name, |
| 642 const std::string& type, | 647 const std::string& type, |
| 643 bool include_nested_pools) const { | 648 bool include_nested_pools) const { |
| 644 std::unique_ptr<base::DictionaryValue> dict(base_.GetInfoAsValue(name, type)); | 649 std::unique_ptr<base::DictionaryValue> dict(base_.GetInfoAsValue(name, type)); |
| 645 if (include_nested_pools) { | 650 if (include_nested_pools) { |
| 646 base::ListValue* list = new base::ListValue(); | 651 base::ListValue* list = new base::ListValue(); |
| 647 if (transport_pool_) { | 652 if (transport_pool_) { |
| 648 list->Append(transport_pool_->GetInfoAsValue("transport_socket_pool", | 653 list->Append(transport_pool_->GetInfoAsValue("transport_socket_pool", |
| 649 "transport_socket_pool", | 654 "transport_socket_pool", |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 685 if (base_.CloseOneIdleSocket()) | 690 if (base_.CloseOneIdleSocket()) |
| 686 return true; | 691 return true; |
| 687 return base_.CloseOneIdleConnectionInHigherLayeredPool(); | 692 return base_.CloseOneIdleConnectionInHigherLayeredPool(); |
| 688 } | 693 } |
| 689 | 694 |
| 690 void SSLClientSocketPool::OnSSLConfigChanged() { | 695 void SSLClientSocketPool::OnSSLConfigChanged() { |
| 691 FlushWithError(ERR_NETWORK_CHANGED); | 696 FlushWithError(ERR_NETWORK_CHANGED); |
| 692 } | 697 } |
| 693 | 698 |
| 694 } // namespace net | 699 } // namespace net |
| OLD | NEW |