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

Unified Diff: net/filter/source_stream.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/filter/source_stream.h
diff --git a/net/filter/source_stream.h b/net/filter/source_stream.h
index be30c141a432eb6dd0a8a9e0304b28f8af531f79..49a771e06419515f9430c94a8979f5de4c3365e5 100644
--- a/net/filter/source_stream.h
+++ b/net/filter/source_stream.h
@@ -14,6 +14,12 @@
#include "net/base/net_errors.h"
#include "net/base/net_export.h"
+namespace base {
+namespace trace_event {
+class MemoryAllocatorDump;
+}
+}
+
namespace net {
class IOBuffer;
@@ -54,6 +60,12 @@ class NET_EXPORT_PRIVATE SourceStream {
// logging.
virtual std::string Description() const = 0;
+ // Called by URLRequestJob to dump memory allocation stats. |dump| is the
+ // memory allocator dump of the URLRequestJob. Default implementation does
+ // nothing.
+ virtual void DumpMemoryStats(
+ base::trace_event::MemoryAllocatorDump* dump) const {}
+
SourceType type() const { return type_; }
private:

Powered by Google App Engine
This is Rietveld 408576698