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

Unified Diff: net/http2/hpack/decoder/http2_hpack_decoder.h

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: address bnc comments Created 3 years, 11 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
Index: net/http2/hpack/decoder/http2_hpack_decoder.h
diff --git a/net/http2/hpack/decoder/http2_hpack_decoder.h b/net/http2/hpack/decoder/http2_hpack_decoder.h
index fff1320b4af63a7bcfb1ab666cd0666754928b7e..d053c3acb52919f52e23786843a647c3c17e5ad3 100644
--- a/net/http2/hpack/decoder/http2_hpack_decoder.h
+++ b/net/http2/hpack/decoder/http2_hpack_decoder.h
@@ -95,6 +95,9 @@ class NET_EXPORT_PRIVATE Http2HpackDecoder {
// Was an error detected?
bool error_detected();
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
friend class test::Http2HpackDecoderPeer;

Powered by Google App Engine
This is Rietveld 408576698