Backed out changeset 9d8b4c0b99ed (bug 1945683) for causing btime failures. CLOSED...
[gecko.git] / dom / workers / remoteworkers / PRemoteWorker.ipdl
blob51983a7feac24dacbb13303a50db64c6a328fef7
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/. */
5 include protocol PFetchEventOpProxy;
6 include protocol PRemoteWorkerService;
8 include ServiceWorkerOpArgs;
9 include SharedWorkerOpArgs;
10 include RemoteWorkerTypes;
12 namespace mozilla {
13 namespace dom {
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
20   manager PRemoteWorkerService;
22   manages PFetchEventOpProxy;
24 parent:
25   async Created(bool aStatus);
27   async Error(ErrorValue aValue);
29   async NotifyLock(bool aCreated);
31   async NotifyWebTransport(bool aCreated);
33   async Close();
35   async SetServiceWorkerSkipWaitingFlag() returns (bool aOk);
37 child:
38   async PFetchEventOpProxy(ParentToChildServiceWorkerFetchEventOpArgs aArgs);
40   async __delete__();
42   async ExecOp(SharedWorkerOpArgs aArgs);
44   async ExecServiceWorkerOp(ServiceWorkerOpArgs aArgs)
45       returns (ServiceWorkerOpResult aResult);
48 } // namespace dom
49 } // namespace mozilla