summaryrefslogtreecommitdiff
path: root/net/disk_cache/cache_util.h
diff options
context:
space:
mode:
authorIain Merrick <husky@google.com>2010-11-01 12:19:54 +0000
committerIain Merrick <husky@google.com>2010-11-03 10:21:10 +0000
commit731df977c0511bca2206b5f333555b1205ff1f43 (patch)
tree0e750b949b3f00a1ac11fda25d3c2de512f2b465 /net/disk_cache/cache_util.h
parent5add15e10e7bb80512f2c597ca57221314abe577 (diff)
downloadchromium-731df977c0511bca2206b5f333555b1205ff1f43.tar.gz
Merge Chromium at r63472 : Initial merge by git.
Change-Id: Ifb9ee821af006a5f2211e81471be93ae440a1f5a
Diffstat (limited to 'net/disk_cache/cache_util.h')
-rw-r--r--net/disk_cache/cache_util.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/net/disk_cache/cache_util.h b/net/disk_cache/cache_util.h
index 455bf305..04b9a070 100644
--- a/net/disk_cache/cache_util.h
+++ b/net/disk_cache/cache_util.h
@@ -13,7 +13,11 @@ class FilePath;
namespace disk_cache {
// Moves the cache files from the given path to another location.
-// Returns true if successful, false otherwise.
+// Fails if the destination exists already, or if it doesn't have
+// permission for the operation. This is basically a rename operation
+// for the cache directory. Returns true if successful. On ChromeOS,
+// this moves the cache contents, and leaves the empty cache
+// directory.
bool MoveCache(const FilePath& from_path, const FilePath& to_path);
// Deletes the cache files stored on |path|, and optionally also attempts to