| OLD | NEW |
| 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 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/header_coalescer.h" | 5 #include "net/spdy/chromium/header_coalescer.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 10 #include "net/http/http_util.h" | 10 #include "net/http/http_util.h" |
| 11 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" | 11 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h" |
| 12 #include "net/spdy/platform/api/spdy_string.h" | 12 #include "net/spdy/platform/api/spdy_string.h" |
| 13 | 13 |
| 14 namespace net { | 14 namespace net { |
| 15 | 15 |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 DCHECK(headers_valid_); | 78 DCHECK(headers_valid_); |
| 79 headers_valid_ = false; | 79 headers_valid_ = false; |
| 80 return std::move(headers_); | 80 return std::move(headers_); |
| 81 } | 81 } |
| 82 | 82 |
| 83 size_t HeaderCoalescer::EstimateMemoryUsage() const { | 83 size_t HeaderCoalescer::EstimateMemoryUsage() const { |
| 84 return SpdyEstimateMemoryUsage(headers_); | 84 return SpdyEstimateMemoryUsage(headers_); |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace net | 87 } // namespace net |
| OLD | NEW |