tor-browser

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

RemoteQuotaObjectParent.h (1363B)


      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
      5 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
      6 
      7 #ifndef DOM_QUOTA_REMOTEQUOTAOBJECTPARENT_H_
      8 #define DOM_QUOTA_REMOTEQUOTAOBJECTPARENT_H_
      9 
     10 #include "mozilla/dom/quota/PRemoteQuotaObjectParent.h"
     11 
     12 namespace mozilla::dom::quota {
     13 
     14 class CanonicalQuotaObject;
     15 class RemoteQuotaObjectParentTracker;
     16 
     17 class RemoteQuotaObjectParent : public PRemoteQuotaObjectParent {
     18 public:
     19  RemoteQuotaObjectParent(RefPtr<CanonicalQuotaObject> aCanonicalQuotaObject,
     20                          nsCOMPtr<RemoteQuotaObjectParentTracker> aTracker);
     21 
     22  NS_INLINE_DECL_REFCOUNTING_ONEVENTTARGET(RemoteQuotaObjectParent, override)
     23 
     24  mozilla::ipc::IPCResult RecvMaybeUpdateSize(int64_t aSize, bool aTruncate,
     25                                              bool* aResult);
     26 
     27  void ActorDestroy(ActorDestroyReason aWhy) override;
     28 
     29 private:
     30  virtual ~RemoteQuotaObjectParent();
     31 
     32  nsresult CheckFileAfterClose();
     33 
     34  RefPtr<CanonicalQuotaObject> mCanonicalQuotaObject;
     35 
     36  nsCOMPtr<RemoteQuotaObjectParentTracker> mTracker;
     37 };
     38 
     39 }  // namespace mozilla::dom::quota
     40 
     41 #endif  // DOM_QUOTA_REMOTEQUOTAOBJECTPARENT_H_