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

Unified Diff: net/http/http_stream_factory.h

Issue 2623383005: Log states of JobController in Net MemoryDumpProvider (Closed)
Patch Set: Separate out preconnect vs non-preconnect Created 3 years, 11 months 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_stream_factory.h
diff --git a/net/http/http_stream_factory.h b/net/http/http_stream_factory.h
index c4a95798cc5726ee0374e5c9fbf73cb3447b3f6c..8424e8ea841908ef761c28519a6327dfb9a81f0a 100644
--- a/net/http/http_stream_factory.h
+++ b/net/http/http_stream_factory.h
@@ -22,6 +22,12 @@
// introduce any link dependency to net/websockets.
#include "net/websockets/websocket_handshake_stream_base.h"
+namespace base {
+namespace trace_event {
+class ProcessMemoryDump;
+}
+}
+
namespace net {
class AuthCredentials;
@@ -235,6 +241,11 @@ class NET_EXPORT HttpStreamFactory {
virtual const HostMappingRules* GetHostMappingRules() const = 0;
+ // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
+ // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
+ virtual void DumpMemoryStats(base::trace_event::ProcessMemoryDump* pmd,
+ const std::string& parent_absolute_name) const {}
ssid 2017/01/18 23:51:52 Can we make it pure virtual, so that some other im
xunjieli 2017/01/19 14:50:41 Done.
+
protected:
HttpStreamFactory();

Powered by Google App Engine
This is Rietveld 408576698