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

Unified Diff: net/spdy/buffered_spdy_framer.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/quic/chromium/quic_stream_factory.cc ('k') | net/spdy/buffered_spdy_framer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/buffered_spdy_framer.h
diff --git a/net/spdy/buffered_spdy_framer.h b/net/spdy/buffered_spdy_framer.h
index 7ab4fa37d1fae7f487cf8246b85ec49684c34384..fa0ead92314860699c94acd5277f81ae966fdd9a 100644
--- a/net/spdy/buffered_spdy_framer.h
+++ b/net/spdy/buffered_spdy_framer.h
@@ -230,6 +230,9 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
int frames_received() const { return frames_received_; }
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
SpdyFramer spdy_framer_;
BufferedSpdyFramerVisitorInterface* visitor_;
@@ -258,6 +261,9 @@ class NET_EXPORT_PRIVATE BufferedSpdyFramer
SpdyStreamId last_accepted_stream_id;
SpdyErrorCode error_code;
std::string debug_data;
+
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
};
std::unique_ptr<GoAwayFields> goaway_fields_;
« no previous file with comments | « net/quic/chromium/quic_stream_factory.cc ('k') | net/spdy/buffered_spdy_framer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698