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

Unified Diff: net/spdy/spdy_buffer_producer.h

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: rebased Created 3 years, 10 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
« no previous file with comments | « net/spdy/spdy_buffer.cc ('k') | net/spdy/spdy_buffer_producer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_buffer_producer.h
diff --git a/net/spdy/spdy_buffer_producer.h b/net/spdy/spdy_buffer_producer.h
index 8d09f7b4ea29542751b63eb5ec9b23f9e35face9..5b18c1878aa4fb3b552e99e2f050e85341777e93 100644
--- a/net/spdy/spdy_buffer_producer.h
+++ b/net/spdy/spdy_buffer_producer.h
@@ -27,6 +27,9 @@ class NET_EXPORT_PRIVATE SpdyBufferProducer {
virtual ~SpdyBufferProducer();
+ // Returns the estimate of dynamically allocated memory in bytes.
+ virtual size_t EstimateMemoryUsage() const = 0;
+
private:
DISALLOW_COPY_AND_ASSIGN(SpdyBufferProducer);
};
@@ -40,6 +43,8 @@ class NET_EXPORT_PRIVATE SimpleBufferProducer : public SpdyBufferProducer {
std::unique_ptr<SpdyBuffer> ProduceBuffer() override;
+ size_t EstimateMemoryUsage() const override;
+
private:
std::unique_ptr<SpdyBuffer> buffer_;
« no previous file with comments | « net/spdy/spdy_buffer.cc ('k') | net/spdy/spdy_buffer_producer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698