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

Unified Diff: net/disk_cache/simple/simple_util.h

Issue 14295013: Simple Cache: DoomEntriesBetween() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix an actual bug in DoomEntry Created 7 years, 8 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/disk_cache/simple/simple_synchronous_entry.cc ('k') | net/disk_cache/simple/simple_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_util.h
diff --git a/net/disk_cache/simple/simple_util.h b/net/disk_cache/simple/simple_util.h
index 5bbd46cbbfd664444560e7832df741fbbf0090fb..4b6462e03486c52bc2615204414dbfca9ba686fa 100644
--- a/net/disk_cache/simple/simple_util.h
+++ b/net/disk_cache/simple/simple_util.h
@@ -38,18 +38,22 @@ NET_EXPORT_PRIVATE std::string GetFilenameFromKeyAndIndex(
const std::string& key,
int index);
-// Given the size of a file holding a stream in the simple backend and the size
-// of the key to an entry, returns the number of bytes in the stream.
+// Same as |GetFilenameFromKeyAndIndex| above, but using a hex string.
+std::string GetFilenameFromHexStringAndIndex(const std::string& hex_key,
+ int index);
+
+// Given the size of a file holding a stream in the simple backend and the key
+// to an entry, returns the number of bytes in the stream.
int32 GetDataSizeFromKeyAndFileSize(const std::string& key,
int64 file_size);
-// Given the size of a stream in the simple backend and the size of the key to
-// an entry, returns the number of bytes in the file.
+// Given the size of a stream in the simple backend and the key to an entry,
+// returns the number of bytes in the file.
int64 GetFileSizeFromKeyAndDataSize(const std::string& key,
int32 data_size);
-// Given the size of a key to an entry, and an offset into a stream on that
-// entry, returns the file offset corresponding to |data_offset|.
+// Given the key to an entry, and an offset into a stream on that entry, returns
+// the file offset corresponding to |data_offset|.
int64 GetFileOffsetFromKeyAndDataOffset(const std::string& key,
int data_offset);
« no previous file with comments | « net/disk_cache/simple/simple_synchronous_entry.cc ('k') | net/disk_cache/simple/simple_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698