tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

PRemoteWorkerController.ipdl (1259B)


      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 include protocol PFetchEventOp;
      7 
      8 include RemoteWorkerTypes;
      9 include ServiceWorkerOpArgs;
     10 
     11 namespace mozilla {
     12 namespace dom {
     13 
     14 /**
     15  * Proxy protocol used by ServiceWorkerManager whose canonical state exists on
     16  * the main thread to control/receive feedback from RemoteWorkers which are
     17  * canonically controlled from the PBackground thread.  Exclusively for use from
     18  * the parent process main thread to the parent process PBackground thread.
     19  */
     20 protocol PRemoteWorkerController {
     21   manager PBackground;
     22 
     23   manages PFetchEventOp;
     24 
     25  child:
     26   async CreationFailed();
     27 
     28   async CreationSucceeded();
     29 
     30   async ErrorReceived(ErrorValue aError);
     31 
     32   async Terminated();
     33 
     34   async SetServiceWorkerSkipWaitingFlag() returns (bool aOk);
     35 
     36  parent:
     37   async PFetchEventOp(ParentToParentServiceWorkerFetchEventOpArgs aArgs);
     38 
     39   async __delete__();
     40 
     41   async Shutdown() returns (bool aOk);
     42 
     43   async ExecServiceWorkerOp(ServiceWorkerOpArgs aArgs)
     44       returns (ServiceWorkerOpResult aResult);
     45 };
     46 
     47 }  // namespace dom
     48 }  // namespace mozilla