nsresult rv;   if (!mDelayedOnStartFired) { rv = DelayedOnStartRequest(request, ctxt); if (NS_FAILED(rv)) { NS_ASSERTION(0, "Firing Ftp OnStart failed."); return rv; } mDelayedOnStartFired = PR_TRUE; }
DataRequestForwarder::OnDataAvailable(nsIRequest *request, nsISupports *ctxt, nsIInputStream *input, PRUint32 offset, PRUint32 count){ #ifdef DOUGT_NEW_CACHE    if (mCacheWriteDescriptor) {                nsCOMPtr<nsIInputStream> tee;        nsresult rv = NS_NewInputStreamTee(getter_AddRefs(tee),                                            input,                                           mCacheOutputStream);        if (NS_FAILED(rv))            return rv;        return mListener->OnDataAvailable(this, ctxt, tee, offset, count);     }#endif    return mListener->OnDataAvailable(this, ctxt, input, offset, count); } 