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 <windows.h> | 7 #include <windows.h> |
8 | 8 |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/message_loop.h" | 10 #include "base/message_loop.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 bool DeleteCacheFile(const FilePath& name) { | 58 bool DeleteCacheFile(const FilePath& name) { |
59 // We do a simple delete, without ever falling back to SHFileOperation, as the | 59 // We do a simple delete, without ever falling back to SHFileOperation, as the |
60 // version from base does. | 60 // version from base does. |
61 return DeleteFile(name.value().c_str()) ? true : false; | 61 return DeleteFile(name.value().c_str()) ? true : false; |
62 } | 62 } |
63 | 63 |
64 void DeleteCache(const std::wstring& path, bool remove_folder) { | 64 void DeleteCache(const std::wstring& path, bool remove_folder) { |
65 DeleteCache(FilePath::FromWStringHack(path), remove_folder); | 65 DeleteCache(FilePath::FromWStringHack(path), remove_folder); |
66 } | 66 } |
67 | 67 |
68 bool DeleteCacheFile(const std::wstring& name) { | |
69 return DeleteCacheFile(FilePath::FromWStringHack(name)); | |
70 } | |
71 | |
72 } // namespace disk_cache | 68 } // namespace disk_cache |
OLD | NEW |