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

Unified Diff: net/disk_cache/cache_util.h

Issue 261045: Start migrating the disk cache to using FilePath. (Closed)
Patch Set: rebase Created 11 years, 2 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/backend_unittest.cc ('k') | net/disk_cache/cache_util_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/cache_util.h
diff --git a/net/disk_cache/cache_util.h b/net/disk_cache/cache_util.h
index cb09521e4681bf8c1797d233902dd8380c1dc5f4..7c915742b20a795df41d769d3bef64d4774b3433 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
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/cache_util_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698