summaryrefslogtreecommitdiffstats
path: root/net/disk_cache/file.h
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/file.h
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/file.h')
-rw-r--r--net/disk_cache/file.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/net/disk_cache/file.h b/net/disk_cache/file.h
index bb0c56f..3c167db 100644
--- a/net/disk_cache/file.h
+++ b/net/disk_cache/file.h
@@ -67,6 +67,9 @@ class File : public base::RefCounted<File> {
bool SetLength(size_t length);
size_t GetLength();
+ // Blocks until |num_pending_io| IO operations complete.
+ static void WaitForPendingIO(int* num_pending_io);
+
protected:
virtual ~File();