Chromium Code Reviews| 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/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 | 10 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 63 headers_[key] = s; | 63 headers_[key] = s; |
| 64 } | 64 } |
| 65 } | 65 } |
| 66 | 66 |
| 67 SpdyHeaderBlock HeaderCoalescer::release_headers() { | 67 SpdyHeaderBlock HeaderCoalescer::release_headers() { |
| 68 DCHECK(headers_valid_); | 68 DCHECK(headers_valid_); |
| 69 headers_valid_ = false; | 69 headers_valid_ = false; |
| 70 return std::move(headers_); | 70 return std::move(headers_); |
| 71 } | 71 } |
| 72 | 72 |
| 73 size_t HeaderCoalescer::EstimateMemoryUsage() const { | |
| 74 return headers_.EstimateMemoryUsage(); | |
|
Bence
2017/02/05 19:11:23
Use EstimateMemoryUsage(headers_) instead?
xunjieli
2017/02/06 14:54:56
Done.
| |
| 75 } | |
| 76 | |
| 73 } // namespace net | 77 } // namespace net |
| OLD | NEW |