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

Side by Side Diff: net/spdy/hpack/hpack_static_table.h

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: rebased Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « net/spdy/hpack/hpack_output_stream.cc ('k') | net/spdy/hpack/hpack_static_table.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « net/spdy/hpack/hpack_output_stream.cc ('k') | net/spdy/hpack/hpack_static_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698