18e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project/* 2dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block * Copyright (C) 2010 Google Inc. All rights reserved. 38e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 48e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * Redistribution and use in source and binary forms, with or without 58e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * modification, are permitted provided that the following conditions 68e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * are met: 78e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 88e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 1. Redistributions of source code must retain the above copyright 98e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * notice, this list of conditions and the following disclaimer. 108e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 2. Redistributions in binary form must reproduce the above copyright 118e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * notice, this list of conditions and the following disclaimer in the 128e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * documentation and/or other materials provided with the distribution. 138e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * 148e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY 158e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 168e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 178e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY 188e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 198e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 208e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 218e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 228e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 238e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 248e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project */ 258e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project 265af96e2c7b73ebc627c6894727826a7576d31758Leon Clarkemodule storage { 278e35f3cfc7fba1d1c829dc557ebad6409cbe16a2The Android Open Source Project 285af96e2c7b73ebc627c6894727826a7576d31758Leon Clarke interface [ 295af96e2c7b73ebc627c6894727826a7576d31758Leon Clarke Conditional=INDEXED_DATABASE 30db14019a23d96bc8a444b6576a5da8bd1cfbc8b0Steve Block ] IDBIndex { 315af96e2c7b73ebc627c6894727826a7576d31758Leon Clarke readonly attribute DOMString name; 3281bc750723a18f21cd17d1b173cd2a4dda9cea6eBen Murdoch readonly attribute IDBObjectStore objectStore; 335af96e2c7b73ebc627c6894727826a7576d31758Leon Clarke readonly attribute DOMString keyPath; 345af96e2c7b73ebc627c6894727826a7576d31758Leon Clarke readonly attribute boolean unique; 355abb8606fa57c3ebfc8b3c3dbc3fa4a25d2ae306Iain Merrick 362fc2651226baac27029e38c9d6ef883fa32084dbSteve Block [CallWith=ScriptExecutionContext] IDBRequest openCursor(in [Optional] IDBKeyRange range, in [Optional] unsigned short direction) 37a94275402997c11dd2e778633dacf4b7e630a35dBen Murdoch raises (IDBDatabaseException); 382fc2651226baac27029e38c9d6ef883fa32084dbSteve Block [CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(in [Optional] IDBKeyRange range, in [Optional] unsigned short direction)) 39a94275402997c11dd2e778633dacf4b7e630a35dBen Murdoch raises (IDBDatabaseException); 40a94275402997c11dd2e778633dacf4b7e630a35dBen Murdoch [CallWith=ScriptExecutionContext] IDBRequest get(in IDBKey key) 41a94275402997c11dd2e778633dacf4b7e630a35dBen Murdoch raises (IDBDatabaseException); 42a94275402997c11dd2e778633dacf4b7e630a35dBen Murdoch [CallWith=ScriptExecutionContext] IDBRequest getKey(in IDBKey key) 43a94275402997c11dd2e778633dacf4b7e630a35dBen Murdoch raises (IDBDatabaseException); 445af96e2c7b73ebc627c6894727826a7576d31758Leon Clarke }; 45dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block 465af96e2c7b73ebc627c6894727826a7576d31758Leon Clarke} 47