OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/spdy/hpack/hpack_static_table.h" | 5 #include "net/spdy/core/hpack/hpack_static_table.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "net/spdy/hpack/hpack_constants.h" | 8 #include "net/spdy/core/hpack/hpack_constants.h" |
9 #include "net/spdy/hpack/hpack_entry.h" | 9 #include "net/spdy/core/hpack/hpack_entry.h" |
10 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 10 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
11 #include "net/spdy/platform/api/spdy_string_piece.h" | 11 #include "net/spdy/platform/api/spdy_string_piece.h" |
12 | 12 |
13 namespace net { | 13 namespace net { |
14 | 14 |
15 HpackStaticTable::HpackStaticTable() {} | 15 HpackStaticTable::HpackStaticTable() {} |
16 | 16 |
17 HpackStaticTable::~HpackStaticTable() {} | 17 HpackStaticTable::~HpackStaticTable() {} |
18 | 18 |
19 void HpackStaticTable::Initialize(const HpackStaticEntry* static_entry_table, | 19 void HpackStaticTable::Initialize(const HpackStaticEntry* static_entry_table, |
(...skipping 21 matching lines...) Expand all Loading... |
41 return !static_entries_.empty(); | 41 return !static_entries_.empty(); |
42 } | 42 } |
43 | 43 |
44 size_t HpackStaticTable::EstimateMemoryUsage() const { | 44 size_t HpackStaticTable::EstimateMemoryUsage() const { |
45 return SpdyEstimateMemoryUsage(static_entries_) + | 45 return SpdyEstimateMemoryUsage(static_entries_) + |
46 SpdyEstimateMemoryUsage(static_index_) + | 46 SpdyEstimateMemoryUsage(static_index_) + |
47 SpdyEstimateMemoryUsage(static_name_index_); | 47 SpdyEstimateMemoryUsage(static_name_index_); |
48 } | 48 } |
49 | 49 |
50 } // namespace net | 50 } // namespace net |
OLD | NEW |