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

Side by Side Diff: net/spdy/header_coalescer.cc

Issue 2665283003: Improve memory estimate of SpdySessionPool in net/ MemoryDumpProvider. (Closed)
Patch Set: rebased Created 3 years, 10 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 (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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698