summaryrefslogtreecommitdiffstats
path: root/net/base/client_socket_pool.h
diff options
context:
space:
mode:
authorwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 17:46:16 +0000
committerwillchan@chromium.org <willchan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-04-30 17:46:16 +0000
commit75e287db9508753ada184ee4252b679912f6f085 (patch)
tree34a7c6c90927d9ec9ba251b6c427d2c72a4931da /net/base/client_socket_pool.h
parent4b77038ebde3dadd45939b171b181b901544236e (diff)
downloadchromium_src-75e287db9508753ada184ee4252b679912f6f085.zip
chromium_src-75e287db9508753ada184ee4252b679912f6f085.tar.gz
chromium_src-75e287db9508753ada184ee4252b679912f6f085.tar.bz2
Add a histogram to measure the number of idle sockets when a TCP connection is established.
Review URL: http://codereview.chromium.org/99205 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@14955 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/client_socket_pool.h')
-rw-r--r--net/base/client_socket_pool.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/base/client_socket_pool.h b/net/base/client_socket_pool.h
index dd08c24..6c92f37 100644
--- a/net/base/client_socket_pool.h
+++ b/net/base/client_socket_pool.h
@@ -73,6 +73,9 @@ class ClientSocketPool : public base::RefCounted<ClientSocketPool> {
return idle_socket_count_;
}
+ // The total number of idle sockets in a connection group.
+ int IdleSocketCountInGroup(const std::string& group_name) const;
+
private:
friend class base::RefCounted<ClientSocketPool>;