tor-browser

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

ServiceWorkerManagerParent.h (1468B)


      1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
      2 /* vim: set ts=8 sts=2 et sw=2 tw=80: */
      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 file,
      5 * You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef mozilla_dom_ServiceWorkerManagerParent_h
      8 #define mozilla_dom_ServiceWorkerManagerParent_h
      9 
     10 #include "mozilla/dom/PServiceWorkerManagerParent.h"
     11 
     12 namespace mozilla {
     13 
     14 namespace ipc {
     15 class BackgroundParentImpl;
     16 }  // namespace ipc
     17 
     18 namespace dom {
     19 
     20 class ServiceWorkerManagerService;
     21 
     22 class ServiceWorkerManagerParent final : public PServiceWorkerManagerParent {
     23  friend class mozilla::ipc::BackgroundParentImpl;
     24  friend class PServiceWorkerManagerParent;
     25 
     26 public:
     27  NS_INLINE_DECL_THREADSAFE_REFCOUNTING(ServiceWorkerManagerParent)
     28 
     29 private:
     30  ServiceWorkerManagerParent();
     31  ~ServiceWorkerManagerParent();
     32 
     33  mozilla::ipc::IPCResult RecvRegister(
     34      const ServiceWorkerRegistrationData& aData);
     35 
     36  mozilla::ipc::IPCResult RecvUnregister(const PrincipalInfo& aPrincipalInfo,
     37                                         const nsString& aScope);
     38 
     39  mozilla::ipc::IPCResult RecvPropagateUnregister(
     40      const PrincipalInfo& aPrincipalInfo, const nsString& aScope);
     41 
     42  virtual void ActorDestroy(ActorDestroyReason aWhy) override;
     43 };
     44 
     45 }  // namespace dom
     46 }  // namespace mozilla
     47 
     48 #endif  // mozilla_dom_ServiceWorkerManagerParent_h