Lines Matching defs:operation
66 BackgroundIO* operation = it->get();
67 operation->Cancel();
68 DCHECK(io_list_.find(operation) != io_list_.end());
69 io_list_.erase(make_scoped_refptr(operation));
74 void InFlightIO::OnIOComplete(BackgroundIO* operation) {
83 FROM_HERE, base::Bind(&BackgroundIO::OnIOSignalled, operation));
84 operation->io_completed()->Signal();
88 void InFlightIO::InvokeCallback(BackgroundIO* operation, bool cancel_task) {
92 operation->io_completed()->Wait();
97 operation->Cancel();
99 // Make sure that we remove the operation from the list before invoking the
101 DCHECK(io_list_.find(operation) != io_list_.end());
102 DCHECK(!operation->HasOneRef());
103 io_list_.erase(make_scoped_refptr(operation));
104 OnOperationComplete(operation, cancel_task);
108 void InFlightIO::OnOperationPosted(BackgroundIO* operation) {
110 io_list_.insert(make_scoped_refptr(operation));