Bug 1874684 - Part 6: Limit day length calculations to safe integers. r=mgaudet
[gecko.git] / dom / quota / RemoteQuotaObjectParent.h
blob6cc8ccf5a0319594cb9a304f87c0fdb9658c0e5c
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/. */
7 #ifndef DOM_QUOTA_REMOTEQUOTAOBJECTPARENT_H_
8 #define DOM_QUOTA_REMOTEQUOTAOBJECTPARENT_H_
10 #include "mozilla/dom/quota/PRemoteQuotaObjectParent.h"
12 namespace mozilla::dom::quota {
14 class CanonicalQuotaObject;
15 class RemoteQuotaObjectParentTracker;
17 class RemoteQuotaObjectParent : public PRemoteQuotaObjectParent {
18 public:
19 RemoteQuotaObjectParent(RefPtr<CanonicalQuotaObject> aCanonicalQuotaObject,
20 nsCOMPtr<RemoteQuotaObjectParentTracker> aTracker);
22 NS_INLINE_DECL_REFCOUNTING_ONEVENTTARGET(RemoteQuotaObjectParent, override)
24 mozilla::ipc::IPCResult RecvMaybeUpdateSize(int64_t aSize, bool aTruncate,
25 bool* aResult);
27 void ActorDestroy(ActorDestroyReason aWhy) override;
29 private:
30 virtual ~RemoteQuotaObjectParent();
32 nsresult CheckFileAfterClose();
34 RefPtr<CanonicalQuotaObject> mCanonicalQuotaObject;
36 nsCOMPtr<RemoteQuotaObjectParentTracker> mTracker;
39 } // namespace mozilla::dom::quota
41 #endif // DOM_QUOTA_REMOTEQUOTAOBJECTPARENT_H_