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

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

Issue 14295013: Simple Cache: DoomEntriesBetween() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
« net/disk_cache/simple/simple_util.h ('K') | « net/disk_cache/simple/simple_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/simple/simple_util.cc
diff --git a/net/disk_cache/simple/simple_util.cc b/net/disk_cache/simple/simple_util.cc
index e716e164aeb987992f9ff2d0c188cd557e53ae0b..ce3ce6897e3a1f01813d5c1da49aa80d9882ecfa 100644
--- a/net/disk_cache/simple/simple_util.cc
+++ b/net/disk_cache/simple/simple_util.cc
@@ -52,6 +52,11 @@ uint64 GetEntryHashKey(const std::string& key) {
return hash_key;
}
+std::string GetFilenameFromHexStringAndIndex(const std::string& hex_key,
+ int index) {
+ return hex_key + base::StringPrintf("_%1d", index);
+}
+
std::string GetFilenameFromKeyAndIndex(const std::string& key, int index) {
return GetEntryHashKeyAsHexString(key) + base::StringPrintf("_%1d", index);
felipeg 2013/04/17 16:35:04 Reuse your newly added function
pasko-google - do not use 2013/04/17 19:47:52 I thought about this too and then decided that thi
}
« net/disk_cache/simple/simple_util.h ('K') | « net/disk_cache/simple/simple_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698