Chromium Code Reviews| 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; |