{ return mBaseStream->Close();
{ nsresult rv = mBaseStream->Close();   mChannel->mRecord->WriteComplete();    mChannel->mRecord->SetStoredContentLength(mTotalSize);  return rv;
WriteStreamWrapper::Close() {   return mBaseStream->Close(); }