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

Unified Diff: net/spdy/spdy_session_key.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/spdy/spdy_session_key.h ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/spdy_session_key.cc
diff --git a/net/spdy/spdy_session_key.cc b/net/spdy/spdy_session_key.cc
index 8b2fcbcc81f879f7e8595d0e986052139f346149..4c15e248b5bdbaadbb079649976e6a16fd76ad4a 100644
--- a/net/spdy/spdy_session_key.cc
+++ b/net/spdy/spdy_session_key.cc
@@ -7,6 +7,8 @@
#include <tuple>
#include "base/logging.h"
+#include "net/base/host_port_pair.h"
+#include "net/spdy/platform/api/spdy_estimate_memory_usage.h"
namespace net {
@@ -49,4 +51,8 @@ bool SpdySessionKey::Equals(const SpdySessionKey& other) const {
host_port_proxy_pair_.second == other.host_port_proxy_pair_.second;
}
+size_t SpdySessionKey::EstimateMemoryUsage() const {
+ return SpdyEstimateMemoryUsage(host_port_proxy_pair_);
+}
+
} // namespace net
« no previous file with comments | « net/spdy/spdy_session_key.h ('k') | net/spdy/spdy_session_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698