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_output_stream.h" | 5 #include "net/spdy/core/hpack/hpack_output_stream.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 10 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
11 | 11 |
12 namespace net { | 12 namespace net { |
13 | 13 |
14 HpackOutputStream::HpackOutputStream() : bit_offset_(0) {} | 14 HpackOutputStream::HpackOutputStream() : bit_offset_(0) {} |
15 | 15 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } else { | 88 } else { |
89 TakeString(output); | 89 TakeString(output); |
90 } | 90 } |
91 } | 91 } |
92 | 92 |
93 size_t HpackOutputStream::EstimateMemoryUsage() const { | 93 size_t HpackOutputStream::EstimateMemoryUsage() const { |
94 return SpdyEstimateMemoryUsage(buffer_); | 94 return SpdyEstimateMemoryUsage(buffer_); |
95 } | 95 } |
96 | 96 |
97 } // namespace net | 97 } // namespace net |
OLD | NEW |