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

Unified Diff: net/filter/source_stream.h

Issue 2540233002: Instrument SourceStream using MemoryDumpProvider
Patch Set: Rebased 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
« no previous file with comments | « net/filter/sdch_source_stream.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/source_stream.h
diff --git a/net/filter/source_stream.h b/net/filter/source_stream.h
index be30c141a432eb6dd0a8a9e0304b28f8af531f79..6ad42da6f0af73515275e19732b4c8ff0bcfab52 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 ProcessMemoryDump;
+}
+}
+
namespace net {
class IOBuffer;
@@ -54,6 +60,13 @@ class NET_EXPORT_PRIVATE SourceStream {
// logging.
virtual std::string Description() const = 0;
+ // Dumps memory allocation stats. |parent_dump_absolute_name| is the name
+ // used by the parent MemoryAllocatorDump in the memory dump hierarchy.
+ // Default implementation does nothing.
+ virtual void DumpMemoryStats(
+ base::trace_event::ProcessMemoryDump* dump,
+ const std::string& parent_dump_absolute_name) const {}
+
SourceType type() const { return type_; }
private:
« no previous file with comments | « net/filter/sdch_source_stream.cc ('k') | net/url_request/url_request.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698