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

Side by Side Diff: net/disk_cache/cache_util.h

Issue 274012: Convert BlockFiles to use FilePath instead of wstring. (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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef NET_DISK_CACHE_CACHE_UTIL_H_ 5 #ifndef NET_DISK_CACHE_CACHE_UTIL_H_
6 #define NET_DISK_CACHE_CACHE_UTIL_H_ 6 #define NET_DISK_CACHE_CACHE_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 11
12 class FilePath; 12 class FilePath;
13 13
14 namespace disk_cache { 14 namespace disk_cache {
15 15
16 // Moves the cache files from the given path to another location. 16 // Moves the cache files from the given path to another location.
17 // Returns true if successful, false otherwise. 17 // Returns true if successful, false otherwise.
18 bool MoveCache(const FilePath& from_path, const FilePath& to_path); 18 bool MoveCache(const FilePath& from_path, const FilePath& to_path);
19 19
20 // Deletes the cache files stored on |path|, and optionally also attempts to 20 // Deletes the cache files stored on |path|, and optionally also attempts to
21 // delete the folder itself. 21 // delete the folder itself.
22 void DeleteCache(const FilePath& path, bool remove_folder); 22 void DeleteCache(const FilePath& path, bool remove_folder);
23 // Deprecated. 23 // Deprecated.
24 void DeleteCache(const std::wstring& path, bool remove_folder); 24 void DeleteCache(const std::wstring& path, bool remove_folder);
25 25
26 // Deletes a cache file. 26 // Deletes a cache file.
27 bool DeleteCacheFile(const FilePath& name); 27 bool DeleteCacheFile(const FilePath& name);
28 // Deprecated.
29 bool DeleteCacheFile(const std::wstring& name);
30 28
31 } // namespace disk_cache 29 } // namespace disk_cache
32 30
33 #endif // NET_DISK_CACHE_CACHE_UTIL_H_ 31 #endif // NET_DISK_CACHE_CACHE_UTIL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698