NS_IMETHODIMP HttpServer::TransportProvider::SetListener(nsIHttpUpgradeListener* aListener) { MOZ_ASSERT(!mListener); MOZ_ASSERT(aListener); mListener = aListener; MaybeNotify(); return NS_OK; }
void HttpServer::TransportProvider::SetTransport(nsISocketTransport* aTransport, nsIAsyncInputStream* aInput, nsIAsyncOutputStream* aOutput) { MOZ_ASSERT(!mTransport); MOZ_ASSERT(aTransport && aInput && aOutput); mTransport = aTransport; mInput = aInput; mOutput = aOutput; MaybeNotify(); }
NS_IMETHODIMP TransportProviderParent::OnTransportAvailable(nsISocketTransport* aTransport, nsIAsyncInputStream* aSocketIn, nsIAsyncOutputStream* aSocketOut) { MOZ_ASSERT(aTransport && aSocketOut && aSocketOut); mTransport = aTransport; mSocketIn = aSocketIn; mSocketOut = aSocketOut; MaybeNotify(); return NS_OK; }