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

Unified Diff: net/filter/mock_source_stream.h

Issue 2525743002: Make URLRequestContext a MemoryDumpProvider (Abandoned) (Closed)
Patch Set: rebased to 7f3d142161b15869f6bea58ac43c5f52ce5834ac Created 4 years, 1 month 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/mock_source_stream.h
diff --git a/net/filter/mock_source_stream.h b/net/filter/mock_source_stream.h
index 9c88bef7cb806a3e75147b16b1c5df257b2c0e01..5dcd9d94d57c215b95e0ac533260b67ef72c6129 100644
--- a/net/filter/mock_source_stream.h
+++ b/net/filter/mock_source_stream.h
@@ -14,6 +14,12 @@
#include "net/base/net_errors.h"
#include "net/filter/source_stream.h"
+namespace base {
+namespace trace_event {
+class MemoryAllocatorDump;
+}
+}
+
namespace net {
class IOBuffer;
@@ -36,6 +42,8 @@ class MockSourceStream : public SourceStream {
const CompletionCallback& callback) override;
std::string Description() const override;
+ void DumpMemoryStats(
+ base::trace_event::MemoryAllocatorDump* dump) const override;
// Enqueues a result to be returned by |Read|. This method does not make a
// copy of |data|, so |data| must outlive this object. If |mode| is SYNC,
// |Read| will return the supplied data synchronously; otherwise, consumer

Powered by Google App Engine
This is Rietveld 408576698