Chromium Code Reviews| 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/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/hpack/hpack_constants.h" |
| 9 #include "net/spdy/hpack/hpack_entry.h" | 9 #include "net/spdy/hpack/hpack_entry.h" |
| 10 | 10 |
| (...skipping 21 matching lines...) Expand all Loading... | |
| 32 static_name_index_.insert(make_pair(entry->name(), entry)); | 32 static_name_index_.insert(make_pair(entry->name(), entry)); |
| 33 | 33 |
| 34 ++total_insertions; | 34 ++total_insertions; |
| 35 } | 35 } |
| 36 } | 36 } |
| 37 | 37 |
| 38 bool HpackStaticTable::IsInitialized() const { | 38 bool HpackStaticTable::IsInitialized() const { |
| 39 return !static_entries_.empty(); | 39 return !static_entries_.empty(); |
| 40 } | 40 } |
| 41 | 41 |
| 42 size_t HpackStaticTable::EstimateMemoryUsage() const { | |
| 43 // TODO(xunjieli): return the allocation of |static_entries_| when std::deque | |
|
Bence
2017/02/02 14:15:19
Please add reference to https://crbug.com/669108.
xunjieli
2017/02/02 14:53:42
Done.
| |
| 44 // is supported in memory_usage_estimator.h. | |
| 45 return 0; | |
| 46 } | |
| 47 | |
| 42 } // namespace net | 48 } // namespace net |
| OLD | NEW |