Confirmed users
53
edits
Line 101: | Line 101: | ||
// Promise<unsigned long> | // Promise<unsigned long> | ||
Promise getLength(); | Promise getLength(); | ||
DataStoreCursor sync(optional DOMString revisionId = ""); | |||
}; | |||
interface DataStoreCursor { | |||
// the DataStore | |||
readonly attribute DataStore store; | |||
// Promise<DataStoreTask> | |||
Promise next(); | |||
void close(); | |||
}; | |||
enum DataStoreOperation { | |||
"add", | |||
"update", | |||
"remove", | |||
"clear", | |||
"done" | |||
}; | |||
dictionary DataStoreTask { | |||
DOMString revisionId; | |||
IDBCursorDirection operation; | |||
unsigned long id; | |||
any data; | |||
}; | }; | ||