nsDiskCacheEntry * diskEntry; nsresult rv = mCacheMap->ReadDiskCacheEntry(mapRecord, &diskEntry); if (NS_FAILED(rv)) { mResult = rv; return kVisitNextRecord; }
binding->mDoomed = PR_TRUE; nsCacheService::GlobalInstance()->DoomEntry_Locked(binding->mCacheEntry); result = kDeleteRecordAndContinue;
    virtual PRInt32  VisitRecord(nsDiskCacheRecord *  mapRecord)    {        // XXX optimization: do we have this record in memory?                // read in the entry (metadata)        nsDiskCacheEntry * diskEntry;        nsresult rv = mCacheMap->ReadDiskCacheEntry(mapRecord, &diskEntry);        if (NS_FAILED(rv)) {            mResult = rv;            return kVisitNextRecord;        }        // create nsICacheEntryInfo        nsDiskCacheEntryInfo * entryInfo = new nsDiskCacheEntryInfo(DISK_CACHE_DEVICE_ID, diskEntry);        if (!entryInfo) {            mResult = NS_ERROR_OUT_OF_MEMORY;            return kStopVisitingRecords;        }        nsCOMPtr<nsICacheEntryInfo> ref(entryInfo);                PRBool  keepGoing;        rv = mVisitor->VisitEntry(DISK_CACHE_DEVICE_ID, entryInfo, &keepGoing);        delete [] (char *)diskEntry;        return keepGoing ? kVisitNextRecord : kStopVisitingRecords;    }