summaryrefslogtreecommitdiffstats
path: root/net/base/host_cache.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/base/host_cache.h')
-rw-r--r--net/base/host_cache.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/net/base/host_cache.h b/net/base/host_cache.h
index 3826045..c4b248b 100644
--- a/net/base/host_cache.h
+++ b/net/base/host_cache.h
@@ -61,8 +61,17 @@ class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) {
HostResolverFlags host_resolver_flags;
};
+ struct EvictionHandler {
+ void Handle(const Key& key,
+ const Entry& entry,
+ const base::TimeTicks& expiration,
+ const base::TimeTicks& now,
+ bool onGet) const;
+ };
+
typedef ExpiringCache<Key, Entry, base::TimeTicks,
- std::less<base::TimeTicks> > EntryMap;
+ std::less<base::TimeTicks>,
+ EvictionHandler> EntryMap;
// Constructs a HostCache that stores up to |max_entries|.
explicit HostCache(size_t max_entries);