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

Unified Diff: net/http/http_network_session.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/http/http_network_session.h
diff --git a/net/http/http_network_session.h b/net/http/http_network_session.h
index 8986dcf93758fbd5c5d33192b9a3c8a47d158565..969fbb87f2dba60544f25c46883d478d1935b2ac 100644
--- a/net/http/http_network_session.h
+++ b/net/http/http_network_session.h
@@ -33,6 +33,9 @@
namespace base {
class Value;
+namespace trace_event {
+class MemoryAllocatorDump;
+}
}
namespace net {
@@ -278,6 +281,12 @@ class NET_EXPORT HttpNetworkSession
SSLConfig* server_config,
SSLConfig* proxy_config) const;
+ // Called by associated URLRequestContext to dump memory allocation stats.
+ // |url_request_context_dump| is the MemoryAllocatorDump of the associated
+ // URLRequestContext.
+ void DumpMemoryStats(
+ base::trace_event::MemoryAllocatorDump* url_request_context_dump) const;
+
private:
friend class HttpNetworkSessionPeer;

Powered by Google App Engine
This is Rietveld 408576698