tor-browser

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

ServiceWorkerRegistrarTypes.ipdlh (1106B)


      1 /* -*- Mode: C++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 8 -*- */
      2 /* vim: set sw=4 ts=8 et tw=80 ft=cpp : */
      3 /* This Source Code Form is subject to the terms of the Mozilla Public
      4  * License, v. 2.0. If a copy of the MPL was not distributed with this
      5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 include IPCNavigationPreloadState;
      8 include "mozilla/dom/cache/IPCUtils.h";
      9 include "mozilla/dom/WorkerIPCUtils.h";
     10 
     11 include IPCStream;
     12 
     13 using mozilla::dom::WorkerType
     14   from "mozilla/dom/WorkerBinding.h";
     15 include PBackgroundSharedTypes;
     16 
     17 namespace mozilla {
     18 namespace dom {
     19 
     20 struct ServiceWorkerRegistrationData
     21 {
     22   int64_t numberOfAttemptedActivations;
     23   bool isBroken;
     24   int64_t cacheAPIId;
     25   nsCString scope;
     26   WorkerType type;
     27 
     28   nsCString currentWorkerURL;
     29   bool currentWorkerHandlesFetch;
     30 
     31   nsString cacheName;
     32 
     33   PrincipalInfo principal;
     34 
     35   uint16_t updateViaCache;
     36 
     37   int64_t currentWorkerInstalledTime;
     38   int64_t currentWorkerActivatedTime;
     39   int64_t lastUpdateTime;
     40 
     41   IPCNavigationPreloadState navigationPreloadState;
     42 };
     43 
     44 } // namespace dom
     45 } // namespace mozilla