Bug 1858737 [wpt PR 42512] - [CompositeClipPathAnimations] Add tests for additional...
[gecko.git] / storage / VacuumManager.h
blob0b0dda2de50f00f9f92a7fbf6f4b96e93a8dd63e
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2 * vim: sw=2 ts=2 et lcs=trail\:.,tab\:>~ :
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_storage_VacuumManager_h__
8 #define mozilla_storage_VacuumManager_h__
10 #include "nsCOMPtr.h"
11 #include "nsIObserver.h"
12 #include "mozIStorageVacuumParticipant.h"
13 #include "nsCategoryCache.h"
14 #include "mozilla/Attributes.h"
16 namespace mozilla {
17 namespace storage {
19 class VacuumManager final : public nsIObserver {
20 public:
21 NS_DECL_ISUPPORTS
22 NS_DECL_NSIOBSERVER
24 VacuumManager();
26 /**
27 * Obtains the VacuumManager object.
29 static already_AddRefed<VacuumManager> getSingleton();
31 private:
32 ~VacuumManager();
34 static VacuumManager* gVacuumManager;
36 // Cache of components registered in "vacuum-participant" category.
37 nsCategoryCache<mozIStorageVacuumParticipant> mParticipants;
40 } // namespace storage
41 } // namespace mozilla
43 #endif