Lines Matching defs:reason
248 void OnPipeException(nsresult reason, PRBool outputOnly = PR_FALSE);
546 nsPipe::OnPipeException(nsresult reason, PRBool outputOnly)
548 LOG(("PPP nsPipe::OnPipeException [reason=%x output-only=%d]\n",
549 reason, outputOnly));
559 mStatus = reason;
567 if (mInput.OnInputException(reason, events))
570 if (mOutput.OnOutputException(reason, events))
639 nsPipeInputStream::OnInputException(nsresult reason, nsPipeEvents &events)
641 LOG(("nsPipeInputStream::OnInputException [this=%x reason=%x]\n",
642 this, reason));
646 NS_ASSERTION(NS_FAILED(reason), "huh? successful exception");
684 nsPipeInputStream::CloseWithStatus(nsresult reason)
686 LOG(("III CloseWithStatus [this=%x reason=%x]\n", this, reason));
688 if (NS_SUCCEEDED(reason))
689 reason = NS_BASE_STREAM_CLOSED;
691 mPipe->OnPipeException(reason);
996 nsPipeOutputStream::OnOutputException(nsresult reason, nsPipeEvents &events)
998 LOG(("nsPipeOutputStream::OnOutputException [this=%x reason=%x]\n",
999 this, reason));
1003 NS_ASSERTION(NS_FAILED(reason), "huh? successful exception");
1038 nsPipeOutputStream::CloseWithStatus(nsresult reason)
1040 LOG(("OOO CloseWithStatus [this=%x reason=%x]\n", this, reason));
1042 if (NS_SUCCEEDED(reason))
1043 reason = NS_BASE_STREAM_CLOSED;
1046 mPipe->OnPipeException(reason, PR_TRUE);