OLD | NEW |
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 #include "net/disk_cache/cache_util.h" | 5 #include "net/disk_cache/cache_util.h" |
6 | 6 |
7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_util.h" | 9 #include "base/string_util.h" |
10 | 10 |
(...skipping 20 matching lines...) Expand all Loading... |
31 } | 31 } |
32 | 32 |
33 bool DeleteCacheFile(const FilePath& name) { | 33 bool DeleteCacheFile(const FilePath& name) { |
34 return file_util::Delete(name, false); | 34 return file_util::Delete(name, false); |
35 } | 35 } |
36 | 36 |
37 void DeleteCache(const std::wstring& path, bool remove_folder) { | 37 void DeleteCache(const std::wstring& path, bool remove_folder) { |
38 DeleteCache(FilePath::FromWStringHack(path), remove_folder); | 38 DeleteCache(FilePath::FromWStringHack(path), remove_folder); |
39 } | 39 } |
40 | 40 |
41 bool DeleteCacheFile(const std::wstring& name) { | |
42 return DeleteCacheFile(FilePath::FromWStringHack(name)); | |
43 } | |
44 | |
45 } // namespace disk_cache | 41 } // namespace disk_cache |
OLD | NEW |