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

Unified Diff: net/spdy/hpack/hpack_static_table.cc

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/spdy/hpack/hpack_static_table.cc
diff --git a/net/spdy/hpack/hpack_static_table.cc b/net/spdy/hpack/hpack_static_table.cc
index 5588ebe183800bbcda42786ea20be6bd9ca1552c..712ee065237ee086478c30383fbffaa058ba0dc2 100644
--- a/net/spdy/hpack/hpack_static_table.cc
+++ b/net/spdy/hpack/hpack_static_table.cc
@@ -39,4 +39,10 @@ bool HpackStaticTable::IsInitialized() const {
return !static_entries_.empty();
}
+size_t HpackStaticTable::EstimateMemoryUsage() const {
+ // TODO(xunjieli): return the allocation of |static_entries_| when std::deque
+ // is supported in memory_usage_estimator.h. https://crbug.com/669108.
+ return 0;
DmitrySkiba 2017/02/02 18:16:27 This class also has static_index_ and static_name_
xunjieli 2017/02/03 22:25:09 Done.
+}
+
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698