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

Unified Diff: net/base/host_port_pair.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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/host_port_pair.h ('k') | net/http2/hpack/decoder/hpack_decoder_string_buffer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_port_pair.cc
diff --git a/net/base/host_port_pair.cc b/net/base/host_port_pair.cc
index 68fb0b650135e885c531b27908ef2cb819d5414c..b40cb7c7af6dc3e1766828d813c1b9d281d41f22 100644
--- a/net/base/host_port_pair.cc
+++ b/net/base/host_port_pair.cc
@@ -49,10 +49,6 @@ HostPortPair HostPortPair::FromString(const std::string& str) {
return host_port_pair;
}
-size_t HostPortPair::EstimateMemoryUsage(const HostPortPair& pair) {
- return base::trace_event::EstimateMemoryUsage(pair.host());
-}
-
std::string HostPortPair::ToString() const {
std::string ret(HostForURL());
ret += ':';
@@ -79,4 +75,8 @@ std::string HostPortPair::HostForURL() const {
return host_;
}
+size_t HostPortPair::EstimateMemoryUsage() const {
+ return base::trace_event::EstimateMemoryUsage(host_);
+}
+
} // namespace net
« no previous file with comments | « net/base/host_port_pair.h ('k') | net/http2/hpack/decoder/hpack_decoder_string_buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698