tor-browser

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

ActorsParent.h (2228B)


      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_localstorage_ActorsParent_h
      8 #define mozilla_dom_localstorage_ActorsParent_h
      9 
     10 #include <cstdint>
     11 
     12 #include "mozilla/AlreadyAddRefed.h"
     13 
     14 namespace mozilla {
     15 
     16 namespace ipc {
     17 
     18 class PBackgroundParent;
     19 class PrincipalInfo;
     20 
     21 }  // namespace ipc
     22 
     23 namespace dom {
     24 
     25 class LSRequestParams;
     26 class LSSimpleRequestParams;
     27 class PBackgroundLSDatabaseParent;
     28 class PBackgroundLSObserverParent;
     29 class PBackgroundLSRequestParent;
     30 class PBackgroundLSSimpleRequestParent;
     31 
     32 namespace quota {
     33 
     34 class Client;
     35 
     36 }  // namespace quota
     37 
     38 void InitializeLocalStorage();
     39 
     40 PBackgroundLSObserverParent* AllocPBackgroundLSObserverParent(
     41    const uint64_t& aObserverId);
     42 
     43 bool RecvPBackgroundLSObserverConstructor(PBackgroundLSObserverParent* aActor,
     44                                          const uint64_t& aObservereId);
     45 
     46 bool DeallocPBackgroundLSObserverParent(PBackgroundLSObserverParent* aActor);
     47 
     48 PBackgroundLSRequestParent* AllocPBackgroundLSRequestParent(
     49    mozilla::ipc::PBackgroundParent* aBackgroundActor,
     50    const LSRequestParams& aParams);
     51 
     52 bool RecvPBackgroundLSRequestConstructor(PBackgroundLSRequestParent* aActor,
     53                                         const LSRequestParams& aParams);
     54 
     55 bool DeallocPBackgroundLSRequestParent(PBackgroundLSRequestParent* aActor);
     56 
     57 PBackgroundLSSimpleRequestParent* AllocPBackgroundLSSimpleRequestParent(
     58    mozilla::ipc::PBackgroundParent* aBackgroundActor,
     59    const LSSimpleRequestParams& aParams);
     60 
     61 bool RecvPBackgroundLSSimpleRequestConstructor(
     62    PBackgroundLSSimpleRequestParent* aActor,
     63    const LSSimpleRequestParams& aParams);
     64 
     65 bool DeallocPBackgroundLSSimpleRequestParent(
     66    PBackgroundLSSimpleRequestParent* aActor);
     67 
     68 namespace localstorage {
     69 
     70 already_AddRefed<mozilla::dom::quota::Client> CreateQuotaClient();
     71 
     72 }  // namespace localstorage
     73 
     74 }  // namespace dom
     75 }  // namespace mozilla
     76 
     77 #endif  // mozilla_dom_localstorage_ActorsParent_h