1 /* -*- Mode: IDL; tab-width: 2; 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 file,
4 * You can obtain one at http://mozilla.org/MPL/2.0/.
6 * The origin of this IDL file is
7 * https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBFactory
9 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
10 * liability, trademark and document use rules apply.
15 dictionary IDBOpenDBOptions
17 [EnforceRange] unsigned long long version;
22 * Interface that defines the indexedDB property on a window. See
23 * http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBFactory
24 * for more information.
26 [Exposed=(Window,Worker)]
27 interface IDBFactory {
28 [Throws, NeedsCallerType]
31 [EnforceRange] unsigned long long version);
33 [Throws, NeedsCallerType]
36 optional IDBOpenDBOptions options = {});
38 [Throws, NeedsCallerType]
40 deleteDatabase(DOMString name,
41 optional IDBOpenDBOptions options = {});
48 [Throws, ChromeOnly, NeedsCallerType]
50 openForPrincipal(Principal principal,
52 [EnforceRange] unsigned long long version);
54 [Throws, ChromeOnly, NeedsCallerType]
56 openForPrincipal(Principal principal,
58 optional IDBOpenDBOptions options = {});
60 [Throws, ChromeOnly, NeedsCallerType]
62 deleteForPrincipal(Principal principal,
64 optional IDBOpenDBOptions options = {});