diff options
author | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-20 20:37:00 +0000 |
---|---|---|
committer | vandebo@chromium.org <vandebo@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-20 20:37:00 +0000 |
commit | b89f7e4d3f98fffe88bd07a57c735e28c37e692c (patch) | |
tree | fb0e304d16190673073e62a44a4ef0103ca48876 /net/socket/client_socket_pool.h | |
parent | b846407ff810e7cfb21642803bd00ed4d4883dc3 (diff) | |
download | chromium_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.h | 6 |
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() {} |