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); |