tor-browser

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

PServiceWorkerRegistration.ipdl (1286B)


      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
      3  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      4 
      5 include protocol PBackground;
      6 
      7 include ClientIPCTypes;
      8 include DOMTypes;
      9 include IPCNavigationPreloadState;
     10 include IPCServiceWorkerRegistrationDescriptor;
     11 
     12 include "ipc/ErrorIPCUtils.h";
     13 
     14 namespace mozilla {
     15 namespace dom {
     16 
     17 [ChildImpl=virtual, ParentImpl=virtual]
     18 protocol PServiceWorkerRegistration
     19 {
     20   manager PBackground;
     21 
     22 parent:
     23   async Unregister() returns (bool aSuccess, CopyableErrorResult aRv);
     24   async Update(nsCString aNewestWorkerScriptUrl) returns (
     25     IPCServiceWorkerRegistrationDescriptorOrCopyableErrorResult aResult);
     26   async GetNotifications(nsString aTag) returns (IPCNotificationsOrError aResult);
     27 
     28   // For NavigationPreload interface
     29   async SetNavigationPreloadEnabled(bool aEnabled) returns (bool aSuccess);
     30   async SetNavigationPreloadHeader(nsCString aHeader) returns (bool aSuccess);
     31   async GetNavigationPreloadState() returns (IPCNavigationPreloadState? aState);
     32 
     33 child:
     34   async UpdateState(IPCServiceWorkerRegistrationDescriptor aDescriptor);
     35   async FireUpdateFound();
     36 
     37 both:
     38   async __delete__();
     39 };
     40 
     41 } // namespace dom
     42 } // namespace mozilla