summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/cache_util_win.cc
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 18:35:24 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 18:35:24 +0000
commitf3c56e7003ecb777c9e981e7ccc0a5c5fe9ced1e (patch)
treec7302913bc73ae2bca0d2dfa8ba87bd152e17a2e /net/disk_cache/cache_util_win.cc
parentf3642e9ea5c41ae3dac690e29bad3df295bc52a9 (diff)
downloadchromium_src-f3c56e7003ecb777c9e981e7ccc0a5c5fe9ced1e.zip
chromium_src-f3c56e7003ecb777c9e981e7ccc0a5c5fe9ced1e.tar.gz
chromium_src-f3c56e7003ecb777c9e981e7ccc0a5c5fe9ced1e.tar.bz2
Disk cache: Implement asynchronous IO for Posix.
BUG=16507 TEST=Unittests Review URL: http://codereview.chromium.org/173170 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23990 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache/cache_util_win.cc')
-rw-r--r--net/disk_cache/cache_util_win.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/net/disk_cache/cache_util_win.cc b/net/disk_cache/cache_util_win.cc
index a82231a..3a99836 100644
--- a/net/disk_cache/cache_util_win.cc
+++ b/net/disk_cache/cache_util_win.cc
@@ -39,9 +39,6 @@ void DeleteFiles(const wchar_t* path, const wchar_t* search_name) {
namespace disk_cache {
-// Implemented in file_win.cc.
-MessageLoopForIO::IOHandler* GetFileIOHandler();
-
bool MoveCache(const std::wstring& from_path, const std::wstring& to_path) {
// I don't want to use the shell version of move because if something goes
// wrong, that version will attempt to move file by file and fail at the end.
@@ -64,12 +61,4 @@ bool DeleteCacheFile(const std::wstring& name) {
return DeleteFile(name.c_str()) ? true : false;
}
-void WaitForPendingIO(int* num_pending_io) {
- while (*num_pending_io) {
- // Asynchronous IO operations may be in flight and the completion may end
- // up calling us back so let's wait for them.
- MessageLoopForIO::current()->WaitForIOCompletion(100, GetFileIOHandler());
- }
-}
-
} // namespace disk_cache