PRemoteWorker.ipdl (1209B)
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 PFetchEventOpProxy; 6 include protocol PRemoteWorkerService; 7 8 include ServiceWorkerOpArgs; 9 include SharedWorkerOpArgs; 10 include RemoteWorkerTypes; 11 12 namespace mozilla { 13 namespace dom { 14 15 // This protocol is used to make a remote worker controllable from the parent 16 // process. The parent process will receive operations from the 17 // PRemoteWorkerController protocol. 18 protocol PRemoteWorker 19 { 20 manager PRemoteWorkerService; 21 22 manages PFetchEventOpProxy; 23 24 parent: 25 async Created(bool aStatus); 26 27 async Error(ErrorValue aValue); 28 29 async NotifyLock(bool aCreated); 30 31 async NotifyWebTransport(bool aCreated); 32 33 async Close(); 34 35 async SetServiceWorkerSkipWaitingFlag() returns (bool aOk); 36 37 child: 38 async PFetchEventOpProxy(ParentToChildServiceWorkerFetchEventOpArgs aArgs); 39 40 async __delete__(); 41 42 async ExecOp(SharedWorkerOpArgs aArgs); 43 44 async ExecServiceWorkerOp(ServiceWorkerOpArgs aArgs) 45 returns (ServiceWorkerOpResult aResult); 46 }; 47 48 } // namespace dom 49 } // namespace mozilla