PSharedWorker.ipdl (967B)
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 file, 3 * You can obtain one at http://mozilla.org/MPL/2.0/. */ 4 5 include protocol PBackground; 6 7 include RemoteWorkerTypes; 8 9 namespace mozilla { 10 namespace dom { 11 12 /** 13 * Protocol for SharedWorker bindings to communicate with per-worker 14 * SharedWorkerManager instances in the parent via SharedWorkerChild / 15 * SharedWorkerParent and SharedWorkerService getting/creating the 16 * SharedWorkerManager if it doesn't already exist. Main-thread to PBackground. 17 */ 18 [ManualDealloc] 19 protocol PSharedWorker 20 { 21 manager PBackground; 22 23 parent: 24 async Close(); 25 async Suspend(); 26 async Resume(); 27 async Freeze(); 28 async Thaw(); 29 30 child: 31 async Error(ErrorValue value); 32 async NotifyLock(bool aCreated); 33 async NotifyWebTransport(bool aCreated); 34 async Terminate(); 35 36 async __delete__(); 37 }; 38 39 } // namespace dom 40 } // namespace mozilla