RemoteQuotaObjectParentTracker.h (1225B)
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_REMOTEQUOTAOBJECTPARENTTRACKER_H_ 8 #define DOM_QUOTA_REMOTEQUOTAOBJECTPARENTTRACKER_H_ 9 10 #include "mozilla/NotNull.h" 11 #include "nsISupports.h" 12 13 #define MOZILLA_DOM_QUOTA_REMOTEQUOTAOBJECTPARENTTRACKER_IID \ 14 {0x42f96136, 0x5b2b, 0x4487, {0xa4, 0x4e, 0x45, 0x0a, 0x00, 0x8f, 0xc5, 0xd4}} 15 16 namespace mozilla::dom::quota { 17 18 class RemoteQuotaObjectParent; 19 20 class RemoteQuotaObjectParentTracker : public nsISupports { 21 public: 22 NS_INLINE_DECL_STATIC_IID( 23 MOZILLA_DOM_QUOTA_REMOTEQUOTAOBJECTPARENTTRACKER_IID) 24 25 virtual void RegisterRemoteQuotaObjectParent( 26 NotNull<RemoteQuotaObjectParent*> aActor) = 0; 27 28 virtual void UnregisterRemoteQuotaObjectParent( 29 NotNull<RemoteQuotaObjectParent*> aActor) = 0; 30 31 protected: 32 virtual ~RemoteQuotaObjectParentTracker() = default; 33 }; 34 35 } // namespace mozilla::dom::quota 36 37 #endif // DOM_QUOTA_REMOTEQUOTAOBJECTPARENTTRACKER_H_