Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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/.
5 *
6 * The origin of this IDL file is
7 * https://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBFactory
8 *
9 * Copyright © 2012 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
10 * liability, trademark and document use rules apply.
11 */
13 interface Principal;
15 dictionary IDBOpenDBOptions
16 {
17 [EnforceRange] unsigned long long version;
18 StorageType storage;
19 };
21 /**
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.
25 */
26 interface IDBFactory {
27 [Throws]
28 IDBOpenDBRequest
29 open(DOMString name,
30 [EnforceRange] unsigned long long version);
32 [Throws]
33 IDBOpenDBRequest
34 open(DOMString name,
35 optional IDBOpenDBOptions options);
37 [Throws]
38 IDBOpenDBRequest
39 deleteDatabase(DOMString name,
40 optional IDBOpenDBOptions options);
42 [Throws]
43 short
44 cmp(any first,
45 any second);
47 [Throws, ChromeOnly]
48 IDBOpenDBRequest
49 openForPrincipal(Principal principal,
50 DOMString name,
51 [EnforceRange] unsigned long long version);
53 [Throws, ChromeOnly]
54 IDBOpenDBRequest
55 openForPrincipal(Principal principal,
56 DOMString name,
57 optional IDBOpenDBOptions options);
59 [Throws, ChromeOnly]
60 IDBOpenDBRequest
61 deleteForPrincipal(Principal principal,
62 DOMString name,
63 optional IDBOpenDBOptions options);
64 };