summaryrefslogtreecommitdiffstats
path: root/net/socket/client_socket_pool.h
diff options
context:
space:
mode:
authorvandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 20:37:00 +0000
committervandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-20 20:37:00 +0000
commitb89f7e4d3f98fffe88bd07a57c735e28c37e692c (patch)
treefb0e304d16190673073e62a44a4ef0103ca48876 /net/socket/client_socket_pool.h
parentb846407ff810e7cfb21642803bd00ed4d4883dc3 (diff)
downloadchromium_src-b89f7e4d3f98fffe88bd07a57c735e28c37e692c.zip
chromium_src-b89f7e4d3f98fffe88bd07a57c735e28c37e692c.tar.gz
chromium_src-b89f7e4d3f98fffe88bd07a57c735e28c37e692c.tar.bz2
Make ClientSocketPool histograms static so that they work properly.
Also change their names so that they appear all together on the histograms page. BUG=43375 TEST=none Review URL: http://codereview.chromium.org/2029004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47843 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/socket/client_socket_pool.h')
-rw-r--r--net/socket/client_socket_pool.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/socket/client_socket_pool.h b/net/socket/client_socket_pool.h
index fb77ac4..c58e72d 100644
--- a/net/socket/client_socket_pool.h
+++ b/net/socket/client_socket_pool.h
@@ -19,6 +19,7 @@ namespace net {
class ClientSocket;
class ClientSocketHandle;
+class ClientSocketPoolHistograms;
// A ClientSocketPool is used to restrict the number of sockets open at a time.
// It also maintains a list of idle persistent sockets.
@@ -86,8 +87,9 @@ class ClientSocketPool : public base::RefCounted<ClientSocketPool> {
// Returns the maximum amount of time to wait before retrying a connect.
static const int kMaxConnectRetryIntervalMs = 250;
- // The name of this pool, i.e. TCP, SOCKS.
- virtual const std::string& name() const = 0;
+ // The set of histograms specific to this pool. We can't use the standard
+ // UMA_HISTOGRAM_* macros because they are callsite static.
+ virtual scoped_refptr<ClientSocketPoolHistograms> histograms() const = 0;
protected:
ClientSocketPool() {}