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

Side by Side Diff: net/spdy/core/hpack/hpack_header_table.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 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
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 #include "net/spdy/hpack/hpack_header_table.h" 5 #include "net/spdy/core/hpack/hpack_header_table.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "net/spdy/hpack/hpack_constants.h" 10 #include "net/spdy/chromium/spdy_flags.h"
11 #include "net/spdy/hpack/hpack_static_table.h" 11 #include "net/spdy/core/hpack/hpack_constants.h"
12 #include "net/spdy/core/hpack/hpack_static_table.h"
12 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" 13 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h"
13 #include "net/spdy/spdy_flags.h"
14 14
15 namespace net { 15 namespace net {
16 16
17 size_t HpackHeaderTable::EntryHasher::operator()( 17 size_t HpackHeaderTable::EntryHasher::operator()(
18 const HpackEntry* entry) const { 18 const HpackEntry* entry) const {
19 return base::StringPieceHash()(entry->name()) ^ 19 return base::StringPieceHash()(entry->name()) ^
20 base::StringPieceHash()(entry->value()); 20 base::StringPieceHash()(entry->value());
21 } 21 }
22 22
23 bool HpackHeaderTable::EntriesEq::operator()(const HpackEntry* lhs, 23 bool HpackHeaderTable::EntriesEq::operator()(const HpackEntry* lhs,
(...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 } 267 }
268 } 268 }
269 269
270 size_t HpackHeaderTable::EstimateMemoryUsage() const { 270 size_t HpackHeaderTable::EstimateMemoryUsage() const {
271 return SpdyEstimateMemoryUsage(dynamic_entries_) + 271 return SpdyEstimateMemoryUsage(dynamic_entries_) +
272 SpdyEstimateMemoryUsage(dynamic_index_) + 272 SpdyEstimateMemoryUsage(dynamic_index_) +
273 SpdyEstimateMemoryUsage(dynamic_name_index_); 273 SpdyEstimateMemoryUsage(dynamic_name_index_);
274 } 274 }
275 275
276 } // namespace net 276 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/core/hpack/hpack_header_table.h ('k') | net/spdy/core/hpack/hpack_header_table_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698