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

Unified Diff: net/http2/hpack/decoder/hpack_whole_entry_buffer.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/hpack_whole_entry_buffer.h
diff --git a/net/http2/hpack/decoder/hpack_whole_entry_buffer.h b/net/http2/hpack/decoder/hpack_whole_entry_buffer.h
index 8ab5d693285a0cba201e5adefac052d776546745..d7f7e843b67560c60b53a6a92bf833d5d1bea39f 100644
--- a/net/http2/hpack/decoder/hpack_whole_entry_buffer.h
+++ b/net/http2/hpack/decoder/hpack_whole_entry_buffer.h
@@ -60,6 +60,9 @@ class NET_EXPORT_PRIVATE HpackWholeEntryBuffer
// no further callbacks will be made to the listener.
bool error_detected() const { return error_detected_; }
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
// Implement the HpackEntryDecoderListener methods.
void OnIndexedHeader(size_t index) override;

Powered by Google App Engine
This is Rietveld 408576698