dom/webidl/IDBFactory.webidl

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     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 };

mercurial