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

Unified Diff: net/base/host_cache.h

Issue 523076: Clear the host cache when closing the last incognito window.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Address jar's comments Created 10 years, 11 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
Index: net/base/host_cache.h
===================================================================
--- net/base/host_cache.h (revision 35853)
+++ net/base/host_cache.h (working copy)
@@ -79,6 +79,11 @@
const AddressList addrlist,
base::TimeTicks now);
+ // Empties the cache.
+ void clear() {
+ entries_.clear();
+ }
+
// Returns true if this HostCache can contain no entries.
bool caching_is_disabled() const {
return max_entries_ == 0;

Powered by Google App Engine
This is Rietveld 408576698