landing gordon's patch for bug 81724 - disk cache needs stream wrappers

(disk cache phase 3) patch=gordon r=dougt sr=darin


git-svn-id: svn://10.0.0.236/trunk@126569 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2002-08-07 01:13:29 +00:00
parent 2c04bc3eb8
commit 7f9fc38dbd
23 changed files with 792 additions and 537 deletions

View File

@@ -304,8 +304,9 @@ nsCacheEntry::RemoveRequest(nsCacheRequest * request)
PRBool
nsCacheEntry::RemoveDescriptor(nsCacheEntryDescriptor * descriptor)
{
// XXX if debug: verify this descriptor belongs to this entry
NS_ASSERTION(descriptor->CacheEntry() == this, "### Wrong cache entry!!");
PR_REMOVE_AND_INIT_LINK(descriptor);
descriptor->ClearCacheEntry();
if (!PR_CLIST_IS_EMPTY(&mDescriptorQ))
return PR_TRUE; // stay active if we still have open descriptors