Lines Matching defs:callback
29 // This class implements FileIOCallback to buffer the callback from a file IO
36 net::CompletionCallback* callback,
38 : entry_(entry), callback_(callback), buf_(buffer),
312 int buf_len, CompletionCallback* callback) {
320 int result = InternalReadData(index, offset, buf, buf_len, callback);
331 int buf_len, CompletionCallback* callback,
340 int result = InternalWriteData(index, offset, buf, buf_len, callback,
352 CompletionCallback* callback) {
360 callback);
366 int buf_len, CompletionCallback* callback) {
374 buf_len, callback);
394 int EntryImpl::ReadyForSparseIOImpl(CompletionCallback* callback) {
396 return sparse_->ReadyToUse(callback);
794 net::CompletionCallback* callback) {
795 if (!callback)
796 return ReadDataImpl(index, offset, buf, buf_len, callback);
810 callback);
815 CompletionCallback* callback, bool truncate) {
816 if (!callback)
817 return WriteDataImpl(index, offset, buf, buf_len, callback, truncate);
827 truncate, callback);
832 net::CompletionCallback* callback) {
833 if (!callback)
834 return ReadSparseDataImpl(offset, buf, buf_len, callback);
837 callback);
842 net::CompletionCallback* callback) {
843 if (!callback)
844 return WriteSparseDataImpl(offset, buf, buf_len, callback);
847 callback);
852 CompletionCallback* callback) {
854 callback);
871 int EntryImpl::ReadyForSparseIO(net::CompletionCallback* callback) {
875 backend_->background_queue()->ReadyForSparseIO(this, callback);
932 int buf_len, CompletionCallback* callback) {
982 if (callback) {
983 io_callback = new SyncCallback(this, buf, callback,
998 return (completed || !callback) ? buf_len : net::ERR_IO_PENDING;
1002 int buf_len, CompletionCallback* callback,
1076 if (callback) {
1077 io_callback = new SyncCallback(this, buf, callback,
1093 return (completed || !callback) ? buf_len : net::ERR_IO_PENDING;