[not part of the build] Added code to update the entry's data size as data is streamed

to the memory cache.


git-svn-id: svn://10.0.0.236/trunk@88265 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
darin%netscape.com
2001-03-01 02:49:26 +00:00
parent 2169cc19f4
commit a31f0fcaf2
3 changed files with 17 additions and 3 deletions

View File

@@ -129,7 +129,10 @@ nsMemoryCacheDevice::GetTransportForEntry( nsCacheEntry * entry,
if (!*transport)
return NS_ERROR_OUT_OF_MEMORY;
NS_ADDREF(*transport);
return entry->SetData(*transport);
rv = entry->SetData(*transport);
if (NS_SUCCEEDED(rv))
NS_STATIC_CAST(nsMemoryCacheTransport *, *transport)->SetCacheEntry(entry);
return rv;
}
}