NS_IMETHODIMP FTPChannelChild::ConnectParent(PRUint32 id) { // The socket transport in the chrome process now holds a logical ref to us // until OnStopRequest, or we do a redirect, or we hit an IPDL error. AddIPDLReference(); if (!gNeckoChild->SendPFTPChannelConstructor(this)) return NS_ERROR_FAILURE; if (!SendConnectChannel(id)) return NS_ERROR_FAILURE; return NS_OK; }
NS_IMETHODIMP HttpChannelChild::ConnectParent(PRUint32 id) { mozilla::dom::TabChild* tabChild = nsnull; nsCOMPtr<nsITabChild> iTabChild; GetCallback(iTabChild); if (iTabChild) { tabChild = static_cast<mozilla::dom::TabChild*>(iTabChild.get()); } // The socket transport in the chrome process now holds a logical ref to us // until OnStopRequest, or we do a redirect, or we hit an IPDL error. AddIPDLReference(); if (!gNeckoChild->SendPHttpChannelConstructor(this, tabChild)) return NS_ERROR_FAILURE; if (!SendConnectChannel(id)) return NS_ERROR_FAILURE; return NS_OK; }