PTCPSocketParent* NeckoParent::AllocPTCPSocketParent() { TCPSocketParent* p = new TCPSocketParent(); p->AddIPDLReference(); return p; }
PTCPSocketParent* NeckoParent::AllocPTCPSocketParent(const nsString& /* host */, const uint16_t& /* port */) { // We actually don't need host/port to construct a TCPSocketParent since // TCPSocketParent will maintain an internal nsIDOMTCPSocket instance which // can be delegated to get the host/port. TCPSocketParent* p = new TCPSocketParent(); p->AddIPDLReference(); return p; }