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

Unified Diff: net/dns/host_cache.h

Issue 2298173002: Implement host-based deletion for the hostname resolution cache. (Closed)
Patch Set: Take TimeTicks::Now() out of the loop Created 4 years, 4 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 | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | net/dns/host_cache.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/host_cache.h
diff --git a/net/dns/host_cache.h b/net/dns/host_cache.h
index 7b3d350a8f8c624509f0906980a55756f7d1ef40..ccda0eb9a926e9da52402743e32071e0de4b1b7f 100644
--- a/net/dns/host_cache.h
+++ b/net/dns/host_cache.h
@@ -146,9 +146,13 @@ class NET_EXPORT HostCache : NON_EXPORTED_BASE(public base::NonThreadSafe) {
eviction_callback_ = callback;
}
- // Empties the cache
+ // Empties the cache.
void clear();
+ // Clears hosts matching |host_filter| from the cache.
+ void ClearForHosts(
+ const base::Callback<bool(const std::string&)>& host_filter);
+
// Returns the number of entries in the cache.
size_t size() const;
« no previous file with comments | « chrome/browser/ui/webui/chromeos/login/gaia_screen_handler.cc ('k') | net/dns/host_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698