| 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 #ifndef NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_ | 5 #ifndef NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_ |
| 6 #define NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_ | 6 #define NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 | 9 |
| 10 #include "net/base/net_export.h" | 10 #include "net/base/net_export.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 const HpackHeaderTable::EntryTable& GetStaticEntries() const { | 35 const HpackHeaderTable::EntryTable& GetStaticEntries() const { |
| 36 return static_entries_; | 36 return static_entries_; |
| 37 } | 37 } |
| 38 const HpackHeaderTable::UnorderedEntrySet& GetStaticIndex() const { | 38 const HpackHeaderTable::UnorderedEntrySet& GetStaticIndex() const { |
| 39 return static_index_; | 39 return static_index_; |
| 40 } | 40 } |
| 41 const HpackHeaderTable::NameToEntryMap& GetStaticNameIndex() const { | 41 const HpackHeaderTable::NameToEntryMap& GetStaticNameIndex() const { |
| 42 return static_name_index_; | 42 return static_name_index_; |
| 43 } | 43 } |
| 44 | 44 |
| 45 // Returns the estimate of dynamically allocated memory in bytes. |
| 46 size_t EstimateMemoryUsage() const; |
| 47 |
| 45 private: | 48 private: |
| 46 HpackHeaderTable::EntryTable static_entries_; | 49 HpackHeaderTable::EntryTable static_entries_; |
| 47 HpackHeaderTable::UnorderedEntrySet static_index_; | 50 HpackHeaderTable::UnorderedEntrySet static_index_; |
| 48 HpackHeaderTable::NameToEntryMap static_name_index_; | 51 HpackHeaderTable::NameToEntryMap static_name_index_; |
| 49 }; | 52 }; |
| 50 | 53 |
| 51 } // namespace net | 54 } // namespace net |
| 52 | 55 |
| 53 #endif // NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_ | 56 #endif // NET_SPDY_HPACK_HPACK_STATIC_TABLE_H_ |
| OLD | NEW |