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;
9 using struct nsID from "nsID.h";
14 // This protocol is used for the BroadcastChannel API
15 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual]
16 protocol PBroadcastChannel
21 async PostMessage(MessageData message);
25 // A message must be delivered.
26 async Notify(MessageData message);
28 // A message has been delivered to other channels. It can be removed after
29 // all the actorsOnSamePid have retrieved it.
30 async RefMessageDelivered(nsID messageID, uint32_t actorsOnSamePid);
36 } // namespace mozilla