1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
5 include protocol PBackground;
13 // This protocol is used for the MessageChannel/MessagePort API
19 /* Many of these methods are used just for the shutdown sequence. The
20 correct sequence for the child actor is:
21 1. SendStopSendingData();
22 2. RecvStopSendingDataConfirmed();
24 4. Recv__delete__(); */
26 /* When the port is transferred the sequence is:
27 1. SendStopSendingData();
28 2. RecvStopSendingDataConfirmed();
30 4. Recv__delete__(); */
33 async PostMessages(MessageData[] messages);
34 async Disentangle(MessageData[] messages);
35 async StopSendingData();
39 async Entangled(MessageData[] messages);
40 async ReceiveData(MessageData[] messages);
41 async StopSendingDataConfirmed();
47 } // namespace mozilla