dom/webidl/IDBFactory.webidl

branch
TOR_BUG_9701
changeset 15
b8a032363ba2
equal deleted inserted replaced
-1:000000000000 0:1f487b3f8d03
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 */
12
13 interface Principal;
14
15 dictionary IDBOpenDBOptions
16 {
17 [EnforceRange] unsigned long long version;
18 StorageType storage;
19 };
20
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);
31
32 [Throws]
33 IDBOpenDBRequest
34 open(DOMString name,
35 optional IDBOpenDBOptions options);
36
37 [Throws]
38 IDBOpenDBRequest
39 deleteDatabase(DOMString name,
40 optional IDBOpenDBOptions options);
41
42 [Throws]
43 short
44 cmp(any first,
45 any second);
46
47 [Throws, ChromeOnly]
48 IDBOpenDBRequest
49 openForPrincipal(Principal principal,
50 DOMString name,
51 [EnforceRange] unsigned long long version);
52
53 [Throws, ChromeOnly]
54 IDBOpenDBRequest
55 openForPrincipal(Principal principal,
56 DOMString name,
57 optional IDBOpenDBOptions options);
58
59 [Throws, ChromeOnly]
60 IDBOpenDBRequest
61 deleteForPrincipal(Principal principal,
62 DOMString name,
63 optional IDBOpenDBOptions options);
64 };

mercurial