PTCPSocketChild* NeckoChild::AllocPTCPSocketChild() { TCPSocketChild* p = new TCPSocketChild(); p->AddIPDLReference(); return p; }
bool NeckoChild::DeallocPTCPSocketChild(PTCPSocketChild* child) { TCPSocketChild* p = static_cast<TCPSocketChild*>(child); p->ReleaseIPDLReference(); return true; }
PTCPSocketChild* NeckoChild::AllocPTCPSocketChild(const nsString& host, const uint16_t& port) { TCPSocketChild* p = new TCPSocketChild(host, port); p->AddIPDLReference(); return p; }