summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/entry_impl.h
diff options
context:
space:
mode:
Diffstat (limited to 'net/disk_cache/entry_impl.h')
-rw-r--r--net/disk_cache/entry_impl.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/net/disk_cache/entry_impl.h b/net/disk_cache/entry_impl.h
index 6d3d614..5a467e4 100644
--- a/net/disk_cache/entry_impl.h
+++ b/net/disk_cache/entry_impl.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_DISK_CACHE_ENTRY_IMPL_H__
-#define NET_DISK_CACHE_ENTRY_IMPL_H__
+#ifndef NET_DISK_CACHE_ENTRY_IMPL_H_
+#define NET_DISK_CACHE_ENTRY_IMPL_H_
#include "net/disk_cache/disk_cache.h"
#include "net/disk_cache/storage_block.h"
@@ -52,9 +52,13 @@ class EntryImpl : public Entry, public base::RefCounted<EntryImpl> {
// Returns true if this entry matches the lookup arguments.
bool IsSameEntry(const std::string& key, uint32 hash);
- // Permamently destroys this entry
+ // Permamently destroys this entry.
void InternalDoom();
+ // Deletes this entry from disk. If |everything| is false, only the user data
+ // will be removed, leaving the key and control data intact.
+ void DeleteEntryData(bool everything);
+
// Returns the address of the next entry on the list of entries with the same
// hash.
CacheAddr GetNextAddress();
@@ -148,5 +152,5 @@ class EntryImpl : public Entry, public base::RefCounted<EntryImpl> {
} // namespace disk_cache
-#endif // NET_DISK_CACHE_ENTRY_IMPL_H__
+#endif // NET_DISK_CACHE_ENTRY_IMPL_H_