2013-10-02 17:27:07 +00:00
|
|
|
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIDOMWindow;
|
2014-06-19 14:03:54 +00:00
|
|
|
interface nsIPrincipal;
|
2014-06-27 07:58:47 +00:00
|
|
|
interface nsIArray;
|
2013-10-02 17:27:07 +00:00
|
|
|
|
2014-06-27 07:58:47 +00:00
|
|
|
[scriptable, uuid(79944b1c-187d-11e4-abb6-74d02b97e723)]
|
2013-10-02 17:27:07 +00:00
|
|
|
interface nsIDataStoreService : nsISupports
|
|
|
|
{
|
|
|
|
void installDataStore(in unsigned long appId,
|
|
|
|
in DOMString name,
|
2013-10-02 17:27:23 +00:00
|
|
|
in DOMString originURL,
|
2013-10-02 17:27:07 +00:00
|
|
|
in DOMString manifestURL,
|
|
|
|
in boolean readOnly);
|
|
|
|
|
2013-10-02 17:27:14 +00:00
|
|
|
void installAccessDataStore(in unsigned long appId,
|
|
|
|
in DOMString name,
|
2013-10-02 17:27:23 +00:00
|
|
|
in DOMString originURL,
|
2013-10-02 17:27:14 +00:00
|
|
|
in DOMString manifestURL,
|
|
|
|
in boolean readOnly);
|
|
|
|
|
2013-10-02 17:27:07 +00:00
|
|
|
nsISupports getDataStores(in nsIDOMWindow window,
|
2014-07-17 03:53:23 +00:00
|
|
|
in DOMString name,
|
|
|
|
in DOMString owner);
|
2014-06-19 14:03:54 +00:00
|
|
|
|
2014-06-27 07:58:47 +00:00
|
|
|
nsIArray getAppManifestURLsForDataStore(in DOMString name);
|
|
|
|
|
2014-06-19 14:03:54 +00:00
|
|
|
boolean checkPermission(in nsIPrincipal principal);
|
2013-10-02 17:27:07 +00:00
|
|
|
};
|