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;
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;
25 async Created(bool aStatus);
27 async Error(ErrorValue aValue);
29 async NotifyLock(bool aCreated);
31 async NotifyWebTransport(bool aCreated);
35 async SetServiceWorkerSkipWaitingFlag() returns (bool aOk);
38 async PFetchEventOpProxy(ParentToChildServiceWorkerFetchEventOpArgs aArgs);
42 async ExecOp(SharedWorkerOpArgs aArgs);
44 async ExecServiceWorkerOp(ServiceWorkerOpArgs aArgs)
45 returns (ServiceWorkerOpResult aResult);
49 } // namespace mozilla