Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(37)

Side by Side Diff: net/socket/ssl_client_socket_pool.cc

Issue 2541093003: Instrument SSL sockets using MemoryDumpProvider (Closed)
Patch Set: Fix flaky test Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/socket/ssl_client_socket_pool.h ('k') | net/socket/ssl_client_socket_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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::DumpMemoryStats(
641 base::trace_event::ProcessMemoryDump* pmd,
642 const std::string& parent_dump_absolute_name) const {
643 base_.DumpMemoryStats(pmd, parent_dump_absolute_name);
644 }
645
640 std::unique_ptr<base::DictionaryValue> SSLClientSocketPool::GetInfoAsValue( 646 std::unique_ptr<base::DictionaryValue> SSLClientSocketPool::GetInfoAsValue(
641 const std::string& name, 647 const std::string& name,
642 const std::string& type, 648 const std::string& type,
643 bool include_nested_pools) const { 649 bool include_nested_pools) const {
644 std::unique_ptr<base::DictionaryValue> dict(base_.GetInfoAsValue(name, type)); 650 std::unique_ptr<base::DictionaryValue> dict(base_.GetInfoAsValue(name, type));
645 if (include_nested_pools) { 651 if (include_nested_pools) {
646 base::ListValue* list = new base::ListValue(); 652 base::ListValue* list = new base::ListValue();
647 if (transport_pool_) { 653 if (transport_pool_) {
648 list->Append(transport_pool_->GetInfoAsValue("transport_socket_pool", 654 list->Append(transport_pool_->GetInfoAsValue("transport_socket_pool",
649 "transport_socket_pool", 655 "transport_socket_pool",
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
685 if (base_.CloseOneIdleSocket()) 691 if (base_.CloseOneIdleSocket())
686 return true; 692 return true;
687 return base_.CloseOneIdleConnectionInHigherLayeredPool(); 693 return base_.CloseOneIdleConnectionInHigherLayeredPool();
688 } 694 }
689 695
690 void SSLClientSocketPool::OnSSLConfigChanged() { 696 void SSLClientSocketPool::OnSSLConfigChanged() {
691 FlushWithError(ERR_NETWORK_CHANGED); 697 FlushWithError(ERR_NETWORK_CHANGED);
692 } 698 }
693 699
694 } // namespace net 700 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_client_socket_pool.h ('k') | net/socket/ssl_client_socket_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698