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

Unified Diff: net/socket/client_socket_pool_base.h

Issue 2541093003: Instrument SSL sockets using MemoryDumpProvider (Closed)
Patch Set: self review 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 side-by-side diff with in-line comments
Download patch
Index: net/socket/client_socket_pool_base.h
diff --git a/net/socket/client_socket_pool_base.h b/net/socket/client_socket_pool_base.h
index 192602186f285b90791dab45319ad90950dfde70..be94fc24987c370229e669a51f5ac84d577a085e 100644
--- a/net/socket/client_socket_pool_base.h
+++ b/net/socket/client_socket_pool_base.h
@@ -56,6 +56,9 @@
namespace base {
class DictionaryValue;
+namespace trace_event {
+class MemoryAllocatorDump;
+}
}
namespace net {
@@ -338,6 +341,11 @@ class NET_EXPORT_PRIVATE ClientSocketPoolBaseHelper
const std::string& name,
const std::string& type) const;
+ // Dumps memory allocation stats. |parent_dump| is the MemoryAllocatorDump of
+ // the parent in the memory dump hierarchy.
+ void DumpMemoryStats(
+ base::trace_event::MemoryAllocatorDump* parent_dump) const;
+
base::TimeDelta ConnectionTimeout() const {
return connect_job_factory_->ConnectionTimeout();
}
@@ -793,6 +801,10 @@ class ClientSocketPoolBase {
return helper_.GetLoadState(group_name, handle);
}
+ void DumpMemoryStats(base::trace_event::MemoryAllocatorDump* dump) const {
+ return helper_.DumpMemoryStats(dump);
+ }
+
virtual void OnConnectJobComplete(int result, ConnectJob* job) {
return helper_.OnConnectJobComplete(result, job);
}

Powered by Google App Engine
This is Rietveld 408576698