ImageConsumer::OnStartRequest(nsIURI* aURL, const char *aContentType) #endif
ImageConsumer::OnStartRequest(nsIChannel* channel, nsISupports* aContext)
ImageConsumer::OnStartRequest(nsIURI* aURL, const char *aContentType)#endif{  if (mInterrupted) {    mStatus = MK_INTERRUPTED;    return NS_ERROR_ABORT;  }  mBuffer = (char *)PR_MALLOC(IMAGE_BUF_SIZE);  if (mBuffer == nsnull) {    mStatus = MK_IMAGE_LOSSAGE;    return NS_ERROR_ABORT;  }  ilINetReader *reader = mURL->GetReader();  if (reader->StreamCreated(mURL, IL_UNKNOWN) != PR_TRUE) {    mStatus = MK_IMAGE_LOSSAGE;    reader->StreamAbort(mStatus);    NS_RELEASE(reader);    return NS_ERROR_ABORT;  }  NS_RELEASE(reader);      return NS_OK;}