Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(463)

Unified Diff: net/disk_cache/file.h

Issue 23752005: Disk Cache: Replace the worker pool with a sequenced worker pool (posix). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: oh style checker... now with virtual Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/file_posix.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/file.h
diff --git a/net/disk_cache/file.h b/net/disk_cache/file.h
index 3038d8841429e593f0e3fa8469879311cec2ee3a..eb9a9ecc1e1ea317b3409b22e7fc84f1a35836ac 100644
--- a/net/disk_cache/file.h
+++ b/net/disk_cache/file.h
@@ -70,18 +70,20 @@ class NET_EXPORT_PRIVATE File : public base::RefCounted<File> {
// Blocks until |num_pending_io| IO operations complete.
static void WaitForPendingIO(int* num_pending_io);
- // Drops current pending operations without waiting for them to complete.
- static void DropPendingIO();
-
protected:
virtual ~File();
+ private:
// Performs the actual asynchronous write. If notify is set and there is no
// callback, the call will be re-synchronized.
bool AsyncWrite(const void* buffer, size_t buffer_len, size_t offset,
FileIOCallback* callback, bool* completed);
- private:
+ // Infrastructure for async IO.
+ int DoRead(void* buffer, size_t buffer_len, size_t offset);
+ int DoWrite(const void* buffer, size_t buffer_len, size_t offset);
+ void OnOperationComplete(FileIOCallback* callback, int result);
+
bool init_;
bool mixed_;
base::PlatformFile platform_file_; // Regular, asynchronous IO handle.
« no previous file with comments | « net/disk_cache/backend_unittest.cc ('k') | net/disk_cache/file_posix.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698