Bug 1878930 - s/RawBuffer/Span/: UniformData. r=gfx-reviewers,lsalzman
[gecko.git] / dom / cache / CacheParent.h
blob391c59cbb23c3181755b676a193822d4c0f32313
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 mozilla_dom_cache_CacheParent_h
8 #define mozilla_dom_cache_CacheParent_h
10 #include "mozilla/dom/SafeRefPtr.h"
11 #include "mozilla/dom/cache/PCacheParent.h"
12 #include "mozilla/dom/cache/Types.h"
14 namespace mozilla::dom::cache {
16 class Manager;
18 class CacheParent final : public PCacheParent {
19 friend class PCacheParent;
21 public:
22 CacheParent(SafeRefPtr<cache::Manager> aManager, CacheId aCacheId);
24 private:
25 virtual ~CacheParent();
27 // PCacheParent methods
28 virtual void ActorDestroy(ActorDestroyReason aReason) override;
30 already_AddRefed<PCacheOpParent> AllocPCacheOpParent(
31 const CacheOpArgs& aOpArgs);
33 virtual mozilla::ipc::IPCResult RecvPCacheOpConstructor(
34 PCacheOpParent* actor, const CacheOpArgs& aOpArgs) override;
36 mozilla::ipc::IPCResult RecvTeardown();
38 SafeRefPtr<cache::Manager> mManager;
39 const CacheId mCacheId;
41 NS_INLINE_DECL_REFCOUNTING(CacheParent, override)
44 } // namespace mozilla::dom::cache
46 #endif // mozilla_dom_cache_CacheParent_h