Lines Matching refs:item
125 // The type of operation represented by a work item.
133 // A work item encapsulates a single request to the backend with all the
485 scoped_ptr<WorkItem> item(new WorkItem(WI_CREATE_BACKEND, NULL, callback,
493 pending_op->pending_queue.push_back(item.release());
499 pending_op->writer = item.release();
520 WorkItem* item = new WorkItem(
524 pending_op->pending_queue.push_back(item);
551 // Each time we request an item from the cache, we tag it with a
553 // item will use the same generation number and pull the proper
605 WorkItem* item = new WorkItem(WI_DOOM_ENTRY, trans, NULL);
608 pending_op->pending_queue.push_back(item);
614 pending_op->writer = item;
620 item->ClearTransaction();
745 WorkItem* item = new WorkItem(WI_OPEN_ENTRY, trans, entry);
748 pending_op->pending_queue.push_back(item);
754 pending_op->writer = item;
761 item->ClearTransaction();
774 WorkItem* item = new WorkItem(WI_CREATE_ENTRY, trans, entry);
777 pending_op->pending_queue.push_back(item);
783 pending_op->writer = item;
790 item->ClearTransaction();
1055 scoped_ptr<WorkItem> item(pending_op->writer);
1064 } else if (item->IsValid()) {
1092 item->NotifyTransaction(result, entry);
1095 item.reset(pending_items.front());
1098 if (item->operation() == WI_DOOM_ENTRY) {
1108 item->NotifyTransaction(ERR_CACHE_RACE, NULL);
1112 if (item->operation() == WI_CREATE_ENTRY) {
1115 item->NotifyTransaction(ERR_CACHE_CREATE_FAILURE, NULL);
1119 item->NotifyTransaction(ERR_CACHE_RACE, NULL);
1122 item->NotifyTransaction(result, entry);
1128 item->NotifyTransaction(ERR_CACHE_RACE, NULL);
1131 item->NotifyTransaction(result, entry);
1151 scoped_ptr<WorkItem> item(pending_op->writer);
1152 WorkItemOperation op = item->operation();
1186 if (!item->DoCallback(result, disk_cache_.get()))
1187 item->NotifyTransaction(result, NULL);