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__
11 #include "nsIObserver.h"
12 #include "mozIStorageVacuumParticipant.h"
13 #include "nsCategoryCache.h"
14 #include "mozilla/Attributes.h"
19 class VacuumManager final
: public nsIObserver
{
27 * Obtains the VacuumManager object.
29 static already_AddRefed
<VacuumManager
> getSingleton();
34 static VacuumManager
* gVacuumManager
;
36 // Cache of components registered in "vacuum-participant" category.
37 nsCategoryCache
<mozIStorageVacuumParticipant
> mParticipants
;
40 } // namespace storage
41 } // namespace mozilla