Home | History | Annotate | Download | only in http

Lines Matching refs:Transaction

139   WorkItem(WorkItemOperation operation, Transaction* trans, ActiveEntry** entry)
142 WorkItem(WorkItemOperation operation, Transaction* trans,
148 // Calls back the transaction with the result of the operation.
173 bool Matches(Transaction* trans) const { return trans == trans_; }
178 Transaction* trans_;
217 // This class encapsulates a transaction whose only purpose is to write metadata
221 explicit MetadataWriter(HttpCache::Transaction* trans)
236 scoped_ptr<HttpCache::Transaction> transaction_;
447 HttpCache::Transaction* trans = new HttpCache::Transaction(this);
475 trans->reset(new HttpCache::Transaction(this));
530 int HttpCache::GetBackendForTransaction(Transaction* trans) {
583 int HttpCache::DoomEntry(const std::string& key, Transaction* trans) {
584 // Need to abandon the ActiveEntry, but any transaction attached to the entry
607 int HttpCache::AsyncDoomEntry(const std::string& key, Transaction* trans) {
725 Transaction* trans) {
755 Transaction* trans) {
789 int HttpCache::AddTransactionToEntry(ActiveEntry* entry, Transaction* trans) {
798 // NOTE: If the transaction can only write, then the entry should not be in
806 if (trans->mode() & Transaction::WRITE) {
807 // transaction needs exclusive access to the entry
815 // transaction needs read access to the entry
820 // AddTransactionToEntry to add their transaction to the pending queue, which
828 void HttpCache::DoneWithEntry(ActiveEntry* entry, Transaction* trans,
830 // If we already posted a task to move on to the next transaction and this was
872 // ERR_CACHE_RACE causes the transaction to restart the whole process.
879 void HttpCache::DoneReadingFromEntry(ActiveEntry* entry, Transaction* trans) {
893 DCHECK(entry->writer->mode() == Transaction::READ_WRITE);
896 Transaction* trans = entry->writer;
905 const Transaction* trans) {
908 // If this is really a pending transaction, and it is not part of
913 Transaction* writer = i->second->writer;
917 void HttpCache::RemovePendingTransaction(Transaction* trans) {
946 DCHECK(found) << "Pending transaction not found";
950 Transaction* trans) {
963 Transaction* trans) {
1007 // Promote next transaction from the pending queue.
1008 Transaction* next = entry->pending_queue.front();
1009 if ((next->mode() & Transaction::WRITE) && !entry->readers.empty())
1040 // The writer transaction is gone.