Bug 1509459 - Get the flexbox highlighter state if the highlighter is ready in the...
[gecko.git] / storage / VacuumManager.h
blob5bd0ec45b99e3270476699d16147e86d6c2a8f51
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 "mozIStorageStatementCallback.h"
13 #include "mozIStorageVacuumParticipant.h"
14 #include "nsCategoryCache.h"
15 #include "mozilla/Attributes.h"
17 namespace mozilla {
18 namespace storage {
20 class VacuumManager final : public nsIObserver {
21 public:
22 NS_DECL_ISUPPORTS
23 NS_DECL_NSIOBSERVER
25 VacuumManager();
27 /**
28 * Obtains the VacuumManager object.
30 static already_AddRefed<VacuumManager> getSingleton();
32 private:
33 ~VacuumManager();
35 static VacuumManager *gVacuumManager;
37 // Cache of components registered in "vacuum-participant" category.
38 nsCategoryCache<mozIStorageVacuumParticipant> mParticipants;
41 } // namespace storage
42 } // namespace mozilla
44 #endif