nsAsyncStreamObserver::OnStopRequest(nsISupports* context, nsresult aStatus, const PRUnichar* aMsg) { nsresult rv = GetStatus(); if (NS_FAILED(rv)) return rv;  nsOnStopRequestEvent* event = new nsOnStopRequestEvent(this, context); if (event == nsnull) return NS_ERROR_OUT_OF_MEMORY;  rv = event->Init(aStatus, aMsg); if (NS_FAILED(rv)) goto failed; rv = event->Fire(mEventQueue); if (NS_FAILED(rv)) goto failed; return rv;  failed: delete event; return rv; }
NS_IMETHOD OnStopRequest(nsISupports* context, nsresult aStatus, const PRUnichar* aMsg) { return nsAsyncStreamObserver::OnStopRequest(context, aStatus, aMsg); }
nsAsyncStreamObserver::OnStopRequest(nsISupports* context,                                          nsresult aStatus,                                          const PRUnichar* aMsg){    nsresult rv = GetStatus();    if (NS_FAILED(rv)) return rv;    nsOnStopRequestEvent* event =         new nsOnStopRequestEvent(this, context);    if (event == nsnull)        return NS_ERROR_OUT_OF_MEMORY;    rv = event->Init(aStatus, aMsg);    if (NS_FAILED(rv)) goto failed;    rv = event->Fire(mEventQueue);    if (NS_FAILED(rv)) goto failed;    return rv;  failed:    delete event;    return rv;}