diff options
author | ttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 22:46:24 +0000 |
---|---|---|
committer | ttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-31 22:46:24 +0000 |
commit | 4e314a9f15c1f439fae50edeb08dfa45766613b2 (patch) | |
tree | 11090eb10be77c3fb84080de436b00400383f279 /net/http/http_auth_cache.h | |
parent | abb8a16efe84999c5c94a10c5a2f6ac98e794ccb (diff) | |
download | chromium_src-4e314a9f15c1f439fae50edeb08dfa45766613b2.zip chromium_src-4e314a9f15c1f439fae50edeb08dfa45766613b2.tar.gz chromium_src-4e314a9f15c1f439fae50edeb08dfa45766613b2.tar.bz2 |
HttpAuthCache: add eviction histograms.
Add histograms to measure how often realms and paths are evicted from
the HTTP auth cache, along with the time since creation and last use
for evicted realms.
BUG=354187
TEST=HttpAuthCacheTest.* in net_unittests still passes
Review URL: https://codereview.chromium.org/205673003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260685 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_auth_cache.h')
-rw-r--r-- | net/http/http_auth_cache.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/http/http_auth_cache.h b/net/http/http_auth_cache.h index 75b379f..707a571 100644 --- a/net/http/http_auth_cache.h +++ b/net/http/http_auth_cache.h @@ -10,6 +10,7 @@ #include "base/gtest_prod_util.h" #include "base/memory/ref_counted.h" +#include "base/time/time.h" #include "net/base/net_export.h" #include "net/http/http_auth.h" #include "url/gurl.h" @@ -96,6 +97,11 @@ class NET_EXPORT_PRIVATE HttpAuthCache { // List of paths that define the realm's protection space. PathList paths_; + + // Times the entry was created and last used (by looking up, adding a path, + // or updating the challenge.) + base::TimeTicks creation_time_; + base::TimeTicks last_use_time_; }; // Prevent unbounded memory growth. These are safeguards for abuse; it is |