PBroadcastChannel.ipdl (901B)
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/. */ 4 5 include protocol PBackground; 6 7 include DOMTypes; 8 9 using struct nsID from "nsID.h"; 10 11 namespace mozilla { 12 namespace dom { 13 14 // This protocol is used for the BroadcastChannel API 15 [ManualDealloc, ChildImpl=virtual, ParentImpl=virtual] 16 protocol PBroadcastChannel 17 { 18 manager PBackground; 19 20 parent: 21 async PostMessage(MessageData message); 22 async Close(); 23 24 child: 25 // A message must be delivered. 26 async Notify(MessageData message); 27 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); 31 32 async __delete__(); 33 }; 34 35 } // namespace dom 36 } // namespace mozilla