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

Unified Diff: net/socket/ssl_client_socket_impl.h

Issue 2525743002: Make URLRequestContext a MemoryDumpProvider (Abandoned) (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/ssl_client_socket_impl.h
diff --git a/net/socket/ssl_client_socket_impl.h b/net/socket/ssl_client_socket_impl.h
index de677ba37138ce3742f0ff0edfcea5280d541c68..457cf0df97bd0a1933b5cdd53fe9cc5737aff6be 100644
--- a/net/socket/ssl_client_socket_impl.h
+++ b/net/socket/ssl_client_socket_impl.h
@@ -37,6 +37,9 @@
namespace base {
class FilePath;
class SequencedTaskRunner;
+namespace trace_event {
+class ProcessMemoryDump;
+}
}
namespace crypto {
@@ -114,7 +117,13 @@ class SSLClientSocketImpl : public SSLClientSocket,
void ClearConnectionAttempts() override {}
void AddConnectionAttempts(const ConnectionAttempts& attempts) override {}
int64_t GetTotalReceivedBytes() const override;
+ void DumpMemoryStats(
+ base::trace_event::MemoryAllocatorDump* dump) const override;
+ // Called by URLRequestContext::OnMemoryDump() to dump memory allocation
+ // stats. |dump| is the browser process memory dump.
+ static void DumpSSLClientSessionMemoryStats(
+ base::trace_event::ProcessMemoryDump* pmd);
// Socket implementation.
int Read(IOBuffer* buf,
int buf_len,

Powered by Google App Engine
This is Rietveld 408576698