1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2; -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef StartupCacheChild_h
7 #define StartupCacheChild_h
9 #include "mozilla/scache/StartupCache.h"
10 #include "mozilla/scache/PStartupCacheChild.h"
11 #include "mozilla/scache/PStartupCacheParent.h"
20 using mozilla::ipc::FileDescriptor
;
22 class StartupCacheChild final
: public PStartupCacheChild
{
23 friend class mozilla::scache::StartupCache
;
24 friend class mozilla::scache::StartupCacheListener
;
27 StartupCacheChild() = default;
29 void Init(bool wantCacheData
);
32 virtual void ActorDestroy(ActorDestroyReason aWhy
) override
;
34 void SendEntriesAndFinalize(StartupCache::Table
& entries
);
37 bool mWantCacheData
= false;
41 } // namespace mozilla
43 #endif // StartupCacheChild_h