1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* vim: set ts=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 #include
"nsISupports.idl"
9 [scriptable
, builtinclass
, uuid(6c62d204
-cb7f
-4762-8703-ebcccdd88Bde
)]
10 interface nsIIndexedDatabaseManager
: nsISupports
13 * Loop over all storage repositories, descend into origin directories,
14 * collect all available IndexedDB databases and do maintenance for them.
15 * The maintenance checks database integrity first and then determines
16 * maintenance action which can be either "nothing" or "incremental vacuum"
17 * or "full vacuum". Incremental or full vacuum is then performed.
19 * If the dom.indexedDB.testing preference is not true the call will fail
20 * because the maintenance is normally initiated by the QuotaManager based
21 * on notifications from the nsIUserIdleService. This method is intented for
22 * testing purposes only.
25 Promise doMaintenance
();