bool BackgroundParentImpl::RecvPMessagePortConstructor(PMessagePortParent* aActor, const nsID& aUUID, const nsID& aDestinationUUID, const uint32_t& aSequenceID) { AssertIsInMainProcess(); AssertIsOnBackgroundThread(); MessagePortParent* mp = static_cast<MessagePortParent*>(aActor); return mp->Entangle(aDestinationUUID, aSequenceID); }
mozilla::ipc::IPCResult BackgroundParentImpl::RecvPMessagePortConstructor(PMessagePortParent* aActor, const nsID& aUUID, const nsID& aDestinationUUID, const uint32_t& aSequenceID) { AssertIsInMainProcess(); AssertIsOnBackgroundThread(); MessagePortParent* mp = static_cast<MessagePortParent*>(aActor); if (!mp->Entangle(aDestinationUUID, aSequenceID)) { return IPC_FAIL_NO_REASON(this); } return IPC_OK(); }