diff options
author | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 20:36:21 +0000 |
---|---|---|
committer | rvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-15 20:36:21 +0000 |
commit | a88d601f7f632a21afe88359d503559fa20d9e40 (patch) | |
tree | 23f4bd0f2492463cb6fadec07c845b5c0ca8e5e0 /net/disk_cache/cache_util_posix.cc | |
parent | 5e40e26d39ea8bf3f6eb879e09e4e5b1f335b9ad (diff) | |
download | chromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.zip chromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.tar.gz chromium_src-a88d601f7f632a21afe88359d503559fa20d9e40.tar.bz2 |
Second pass move the os dependent code apart on the disk cache.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@960 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/cache_util_posix.cc')
-rw-r--r-- | net/disk_cache/cache_util_posix.cc | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/net/disk_cache/cache_util_posix.cc b/net/disk_cache/cache_util_posix.cc index 10e0b93..a6055fa 100644 --- a/net/disk_cache/cache_util_posix.cc +++ b/net/disk_cache/cache_util_posix.cc @@ -27,10 +27,11 @@ // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. -#include "net/cache_util.h" +#include "net/disk_cache/cache_util.h" #include "base/file_util.h" #include "base/logging.h" +#include "base/notimplemented.h" namespace disk_cache { @@ -54,9 +55,19 @@ void DeleteCache(const std::wstring& path, bool remove_folder) { file_util::Delete(path, false); } else { std::wstring name(path); - file_util::AppendToPath(name, L"*"); + file_util::AppendToPath(&name, L"*"); file_util::Delete(name, false); } } +bool DeleteCacheFile(const std::wstring& name) { + return file_util::Delete(name, false); +} + +void WaitForPendingIO(int num_pending_io) { + if (num_pending_io) { + NOTIMPLEMENTED(); + } +} + } // namespace disk_cache |