| 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..626bd92b01a31d2f953566b609a26ff0ca94b7f7 100644
|
| --- a/net/spdy/hpack/hpack_static_table.cc
|
| +++ b/net/spdy/hpack/hpack_static_table.cc
|
| @@ -7,6 +7,7 @@
|
| #include "base/logging.h"
|
| #include "net/spdy/hpack/hpack_constants.h"
|
| #include "net/spdy/hpack/hpack_entry.h"
|
| +#include "net/spdy/platform/api/spdy_estimate_memory_usage.h"
|
|
|
| namespace net {
|
|
|
| @@ -39,4 +40,10 @@ bool HpackStaticTable::IsInitialized() const {
|
| return !static_entries_.empty();
|
| }
|
|
|
| +size_t HpackStaticTable::EstimateMemoryUsage() const {
|
| + return SpdyEstimateMemoryUsage(static_entries_) +
|
| + SpdyEstimateMemoryUsage(static_index_) +
|
| + SpdyEstimateMemoryUsage(static_name_index_);
|
| +}
|
| +
|
| } // namespace net
|
|
|