示例#1
0
void
HttpBaseChannel::DoNotifyListener()
{
    // Make sure mIsPending is set to false. At this moment we are done from
    // the point of view of our consumer and we have to report our self
    // as not-pending.
    if (mListener) {
        mListener->OnStartRequest(this, mListenerContext);
        mIsPending = false;
        mListener->OnStopRequest(this, mListenerContext, mStatus);
    } else {
        mIsPending = false;
    }
    // We have to make sure to drop the references to listeners and callbacks
    // no longer  needed
    ReleaseListeners();

    DoNotifyListenerCleanup();
}
nsPrintProgress::~nsPrintProgress()
{
  (void)ReleaseListeners();
}
nsMsgProgress::~nsMsgProgress()
{
  (void)ReleaseListeners();
}