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 00:05:21 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-21 00:05:21 +0000
commit3604e85c38ea42579316c4123f38b2d7d9a6eec1 (patch)
tree6c768f754f8a1244f628f884876e7207d52ed2b1 /net/disk_cache/cache_util_win.cc
parent6a45945266d968f8d1523fecbf85e8f31491b8a3 (diff)
downloadchromium_src-3604e85c38ea42579316c4123f38b2d7d9a6eec1.zip
chromium_src-3604e85c38ea42579316c4123f38b2d7d9a6eec1.tar.gz
chromium_src-3604e85c38ea42579316c4123f38b2d7d9a6eec1.tar.bz2
Disk cache: Implement asynchronous IO for Posix.
BUG=16507 TEST=Unittests Review URL: http://codereview.chromium.org/171085 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23919 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