tor-browser

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

IPCServiceWorkerDescriptor.ipdlh (1036B)


      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 PBackgroundSharedTypes;
      6 
      7 include "mozilla/dom/ServiceWorkerIPCUtils.h";
      8 include "mozilla/dom/WorkerIPCUtils.h";
      9 
     10 using mozilla::dom::ServiceWorkerState from "mozilla/dom/ServiceWorkerBinding.h";
     11 using mozilla::dom::WorkerType from "mozilla/dom/WorkerBinding.h";
     12 
     13 namespace mozilla {
     14 namespace dom {
     15 
     16 // IPC type with enough information to create a ServiceWorker DOM object
     17 // in a child process.  Note that the state may be slightly out-of-sync
     18 // with the parent and should be updated dynamically if necessary.
     19 [Comparable] struct IPCServiceWorkerDescriptor
     20 {
     21   uint64_t id;
     22   uint64_t registrationId;
     23   uint64_t registrationVersion;
     24   PrincipalInfo principalInfo;
     25   nsCString scope;
     26   WorkerType type;
     27   nsCString scriptURL;
     28   ServiceWorkerState state;
     29   bool handlesFetch;
     30 };
     31 
     32 } // namespace dom
     33 } // namespace mozilla