nsCacheEntryDescriptor::Close() { nsAutoLock  lock(nsCacheService::ServiceLock()); if (!mCacheEntry)  return NS_ERROR_NOT_AVAILABLE;     nsCacheService::CloseDescriptor(this); NS_ASSERTION(mCacheEntry == nsnull, "mCacheEntry not null");  return NS_OK; }
NS_IMETHOD Close(void) { return mOutput->Close(); }
nsCacheEntryDescriptor::Close(){    nsAutoLock  lock(nsCacheService::ServiceLock());    if (!mCacheEntry)  return NS_ERROR_NOT_AVAILABLE;    // XXX perhaps closing descriptors should clear/sever transports    // tell nsCacheService we're going away    nsCacheService::CloseDescriptor(this);    NS_ASSERTION(mCacheEntry == nsnull, "mCacheEntry not null");    return NS_OK;}