if (mOutFile) {
PRUint32 httpStatus; nsCOMPtr<nsIHTTPChannel> pHTTPCon(do_QueryInterface(channel)); if (pHTTPCon) { pHTTPCon->GetResponseStatus(&httpStatus); } if (mOutFile && httpStatus != 304 ) {
InputConsumer::OnStopRequest(nsIChannel* channel,                              nsISupports* context,                             nsresult aStatus,                             const PRUnichar* aMsg){  if (mOutFile) {      mOutFile->flush();      mOutFile->close();  }  gKeepRunning = 0;  return NS_OK;}