michael@0: /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this michael@0: * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #include "nsISupports.idl" michael@0: michael@0: interface nsIDOMWindow; michael@0: michael@0: [scriptable, uuid(bd02d09c-41ab-47b7-9319-57aa8e5059b0)] michael@0: interface nsIDataStoreService : nsISupports michael@0: { michael@0: void installDataStore(in unsigned long appId, michael@0: in DOMString name, michael@0: in DOMString originURL, michael@0: in DOMString manifestURL, michael@0: in boolean readOnly); michael@0: michael@0: void installAccessDataStore(in unsigned long appId, michael@0: in DOMString name, michael@0: in DOMString originURL, michael@0: in DOMString manifestURL, michael@0: in boolean readOnly); michael@0: michael@0: nsISupports getDataStores(in nsIDOMWindow window, michael@0: in DOMString name); michael@0: michael@0: // This is an array of objects composed by: michael@0: // - readOnly: boolean michael@0: // - name: DOMString michael@0: // - owner: DOMString michael@0: // - enabled: true/false - true if this dataStore is ready to be used. michael@0: jsval getDataStoresInfo(in DOMString name, michael@0: in unsigned long appId); michael@0: };