summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/cache_util.h
diff options
context:
space:
mode:
authortony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-12 17:14:59 +0000
committertony@chromium.org <tony@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-12 17:14:59 +0000
commitcfaa1f2938c346d4801b895e7181f5de7d3755e6 (patch)
tree934967a90f94c5d50939929dd6ab38ad5dceed3e /net/disk_cache/cache_util.h
parent1ee19742db740fb60ed78266039f65c93c85c836 (diff)
downloadchromium_src-cfaa1f2938c346d4801b895e7181f5de7d3755e6.zip
chromium_src-cfaa1f2938c346d4801b895e7181f5de7d3755e6.tar.gz
chromium_src-cfaa1f2938c346d4801b895e7181f5de7d3755e6.tar.bz2
Start migrating the disk cache to using FilePath.
This converts BackendImpl to using FilePath. BUG=24444 Review URL: http://codereview.chromium.org/261045 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@28711 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/cache_util.h')
-rw-r--r--net/disk_cache/cache_util.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/net/disk_cache/cache_util.h b/net/disk_cache/cache_util.h
index cb09521..7c91574 100644
--- a/net/disk_cache/cache_util.h
+++ b/net/disk_cache/cache_util.h
@@ -9,17 +9,23 @@
#include "base/basictypes.h"
+class FilePath;
+
namespace disk_cache {
// Moves the cache files from the given path to another location.
// Returns true if successful, false otherwise.
-bool MoveCache(const std::wstring& from_path, const std::wstring& to_path);
+bool MoveCache(const FilePath& from_path, const FilePath& to_path);
// Deletes the cache files stored on |path|, and optionally also attempts to
// delete the folder itself.
+void DeleteCache(const FilePath& path, bool remove_folder);
+// Deprecated.
void DeleteCache(const std::wstring& path, bool remove_folder);
// Deletes a cache file.
+bool DeleteCacheFile(const FilePath& name);
+// Deprecated.
bool DeleteCacheFile(const std::wstring& name);
} // namespace disk_cache