Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1033)

Unified Diff: net/base/host_cache.h

Issue 10556022: Consider the verification time as well as the expiration time when caching certificate verification… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with less const Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/base/expiring_cache_unittest.cc ('k') | net/base/host_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/host_cache.h
diff --git a/net/base/host_cache.h b/net/base/host_cache.h
index a47a4ffbd6847e65570610708a61dfde9af3da66..6f0e17dab5938fd6d4a9fa9807fd9da2a9b7b23a 100644
--- a/net/base/host_cache.h
+++ b/net/base/host_cache.h
@@ -6,6 +6,7 @@
#define NET_BASE_HOST_CACHE_H_
#pragma once
+#include <functional>
#include <string>
#include "base/gtest_prod_util.h"
@@ -54,7 +55,8 @@ class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) {
HostResolverFlags host_resolver_flags;
};
- typedef ExpiringCache<Key, Entry> EntryMap;
+ typedef ExpiringCache<Key, Entry, base::TimeTicks,
+ std::less<base::TimeTicks> > EntryMap;
// Constructs a HostCache that stores up to |max_entries|.
explicit HostCache(size_t max_entries);
« no previous file with comments | « net/base/expiring_cache_unittest.cc ('k') | net/base/host_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698