dom/datastore/nsIDataStoreService.idl

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/dom/datastore/nsIDataStoreService.idl	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     1.5 +/* This Source Code Form is subject to the terms of the Mozilla Public
     1.6 + * License, v. 2.0. If a copy of the MPL was not distributed with this
     1.7 + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     1.8 +
     1.9 +#include "nsISupports.idl"
    1.10 +
    1.11 +interface nsIDOMWindow;
    1.12 +
    1.13 +[scriptable, uuid(bd02d09c-41ab-47b7-9319-57aa8e5059b0)]
    1.14 +interface nsIDataStoreService : nsISupports
    1.15 +{
    1.16 +  void installDataStore(in unsigned long appId,
    1.17 +                        in DOMString name,
    1.18 +                        in DOMString originURL,
    1.19 +                        in DOMString manifestURL,
    1.20 +                        in boolean readOnly);
    1.21 +
    1.22 +  void installAccessDataStore(in unsigned long appId,
    1.23 +                              in DOMString name,
    1.24 +                              in DOMString originURL,
    1.25 +                              in DOMString manifestURL,
    1.26 +                              in boolean readOnly);
    1.27 +
    1.28 +  nsISupports getDataStores(in nsIDOMWindow window,
    1.29 +                            in DOMString name);
    1.30 +
    1.31 +  // This is an array of objects composed by:
    1.32 +  // - readOnly: boolean
    1.33 +  // - name: DOMString
    1.34 +  // - owner: DOMString
    1.35 +  // - enabled: true/false - true if this dataStore is ready to be used.
    1.36 +  jsval getDataStoresInfo(in DOMString name,
    1.37 +                          in unsigned long appId);
    1.38 +};

mercurial