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

Unified Diff: net/base/host_port_pair.h

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 | « no previous file | net/base/host_port_pair.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_port_pair.h
diff --git a/net/base/host_port_pair.h b/net/base/host_port_pair.h
index ebb2dd16406c4457c9ec0c584abcd9ecea763ea3..a5ee6bda3ff542624b484b7a11811b708fec3e11 100644
--- a/net/base/host_port_pair.h
+++ b/net/base/host_port_pair.h
@@ -34,9 +34,6 @@ class NET_EXPORT HostPortPair {
// ToString().
static HostPortPair FromString(const std::string& str);
- // Returns the estimate of dynamically allocated memory in bytes.
- static size_t EstimateMemoryUsage(const HostPortPair& pair);
-
// TODO(willchan): Define a functor instead.
// Comparator function so this can be placed in a std::map.
bool operator<(const HostPortPair& other) const {
@@ -71,6 +68,9 @@ class NET_EXPORT HostPortPair {
// Returns |host_|, adding IPv6 brackets if needed.
std::string HostForURL() const;
+ // Returns the estimate of dynamically allocated memory in bytes.
+ size_t EstimateMemoryUsage() const;
+
private:
// If |host_| represents an IPv6 address, this string will not contain
// brackets around the address.
« no previous file with comments | « no previous file | net/base/host_port_pair.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698