Lines Matching defs:disk_cache
5 #include "net/disk_cache/file.h"
12 #include "net/disk_cache/disk_cache.h"
13 #include "net/disk_cache/in_flight_io.h"
19 class FileBackgroundIO : public disk_cache::BackgroundIO {
26 FileBackgroundIO(disk_cache::File* file, const void* buf, size_t buf_len,
27 size_t offset, disk_cache::FileIOCallback* callback,
28 disk_cache::InFlightIO* controller)
29 : disk_cache::BackgroundIO(controller), callback_(callback), file_(file),
33 disk_cache::FileIOCallback* callback() {
37 disk_cache::File* file() {
52 disk_cache::FileIOCallback* callback_;
54 disk_cache::File* file_;
64 class FileInFlightIO : public disk_cache::InFlightIO {
72 void PostRead(disk_cache::File* file, void* buf, size_t buf_len,
73 size_t offset, disk_cache::FileIOCallback* callback);
74 void PostWrite(disk_cache::File* file, const void* buf, size_t buf_len,
75 size_t offset, disk_cache::FileIOCallback* callback);
82 virtual void OnOperationComplete(disk_cache::BackgroundIO* operation,
111 void FileInFlightIO::PostRead(disk_cache::File *file, void* buf, size_t buf_len,
112 size_t offset, disk_cache::FileIOCallback *callback) {
122 void FileInFlightIO::PostWrite(disk_cache::File* file, const void* buf,
124 disk_cache::FileIOCallback* callback) {
135 void FileInFlightIO::OnOperationComplete(disk_cache::BackgroundIO* operation,
139 disk_cache::FileIOCallback* callback = op->callback();
167 namespace disk_cache {
294 } // namespace disk_cache