2010-06-23 12:46:08 -07:00
|
|
|
/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 et sw=2 tw=80: */
|
2012-05-21 04:12:37 -07:00
|
|
|
/* 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/. */
|
2010-06-23 12:46:08 -07:00
|
|
|
|
|
|
|
#include "nsISupports.idl"
|
|
|
|
|
|
|
|
interface nsIIDBKeyRange;
|
2011-10-20 09:10:56 -07:00
|
|
|
interface nsIIDBOpenDBRequest;
|
2010-06-23 12:46:08 -07:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Interface that defines the indexedDB property on a window. See
|
2010-06-28 09:44:30 -07:00
|
|
|
* http://dvcs.w3.org/hg/IndexedDB/raw-file/tip/Overview.html#idl-def-IDBFactory
|
2010-06-23 12:46:08 -07:00
|
|
|
* for more information.
|
|
|
|
*/
|
2011-11-07 16:15:45 -08:00
|
|
|
[scriptable, builtinclass, uuid(885abbb7-cf81-4945-b5f1-07fed07ada82)]
|
2010-06-28 09:44:30 -07:00
|
|
|
interface nsIIDBFactory : nsISupports
|
2010-06-23 12:46:08 -07:00
|
|
|
{
|
2011-11-07 16:15:45 -08:00
|
|
|
[optional_argc]
|
2011-10-20 09:10:56 -07:00
|
|
|
nsIIDBOpenDBRequest
|
2011-11-07 15:37:16 -08:00
|
|
|
open([Null(Stringify)] in DOMString name,
|
2011-11-02 05:53:12 -07:00
|
|
|
[optional] in long long version);
|
2011-11-07 16:15:45 -08:00
|
|
|
|
|
|
|
nsIIDBOpenDBRequest
|
|
|
|
deleteDatabase(in AString name);
|
2011-11-08 11:03:18 -08:00
|
|
|
|
|
|
|
[implicit_jscontext]
|
|
|
|
short
|
|
|
|
cmp(in jsval first,
|
|
|
|
in jsval second);
|
2010-06-23 12:46:08 -07:00
|
|
|
};
|