mChannel = channel; NS_ADDREF(mChannel); mContext = context; NS_IF_ADDREF(mContext); mListener = listener; NS_ADDREF(mListener); return rv;
mHandler = handler; NS_ADDREF(mHandler); return NS_OK;
    nsresult Init(nsIChannel* channel, nsISupports* context, nsIStreamListener* listener,                  PRUint32 growBySize, PRUint32 maxSize) {        nsresult rv;        rv = NS_NewPipe(&mInputStream, &mOutputStream,                        growBySize, maxSize, PR_TRUE, nsnull);        if (NS_FAILED(rv)) return rv;        mChannel = channel;        NS_ADDREF(mChannel);        mContext = context;        NS_IF_ADDREF(mContext);        mListener = listener;        NS_ADDREF(mListener);        return rv;    }