Lines Matching refs:item
127 // The type of operation represented by a work item.
135 // A work item encapsulates a single request to the backend with all the
502 scoped_ptr<WorkItem> item(new WorkItem(WI_CREATE_BACKEND, NULL, callback,
510 pending_op->pending_queue.push_back(item.release());
516 pending_op->writer = item.release();
537 WorkItem* item = new WorkItem(WI_CREATE_BACKEND, trans, NULL, NULL);
540 pending_op->pending_queue.push_back(item);
566 // Each time we request an item from the cache, we tag it with a
568 // item will use the same generation number and pull the proper
609 WorkItem* item = new WorkItem(WI_DOOM_ENTRY, trans, NULL);
612 pending_op->pending_queue.push_back(item);
618 pending_op->writer = item;
624 item->ClearTransaction();
732 WorkItem* item = new WorkItem(WI_OPEN_ENTRY, trans, entry);
735 pending_op->pending_queue.push_back(item);
741 pending_op->writer = item;
747 item->ClearTransaction();
758 WorkItem* item = new WorkItem(WI_CREATE_ENTRY, trans, entry);
761 pending_op->pending_queue.push_back(item);
767 pending_op->writer = item;
774 item->ClearTransaction();
1027 scoped_ptr<WorkItem> item(pending_op->writer);
1036 } else if (item->IsValid()) {
1064 item->NotifyTransaction(result, entry);
1067 item.reset(pending_items.front());
1070 if (item->operation() == WI_DOOM_ENTRY) {
1080 item->NotifyTransaction(ERR_CACHE_RACE, NULL);
1084 if (item->operation() == WI_CREATE_ENTRY) {
1087 item->NotifyTransaction(ERR_CACHE_CREATE_FAILURE, NULL);
1091 item->NotifyTransaction(ERR_CACHE_RACE, NULL);
1094 item->NotifyTransaction(result, entry);
1100 item->NotifyTransaction(ERR_CACHE_RACE, NULL);
1103 item->NotifyTransaction(result, entry);
1110 scoped_ptr<WorkItem> item(pending_op->writer);
1111 WorkItemOperation op = item->operation();
1146 if (!item->DoCallback(result, backend))
1147 item->NotifyTransaction(result, NULL);