diff options
Diffstat (limited to 'Source/WebCore/storage/IDBObjectStoreBackendInterface.h')
-rw-r--r-- | Source/WebCore/storage/IDBObjectStoreBackendInterface.h | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/WebCore/storage/IDBObjectStoreBackendInterface.h b/Source/WebCore/storage/IDBObjectStoreBackendInterface.h index 02ceb27..177701c 100644 --- a/Source/WebCore/storage/IDBObjectStoreBackendInterface.h +++ b/Source/WebCore/storage/IDBObjectStoreBackendInterface.h @@ -51,9 +51,17 @@ public: virtual PassRefPtr<DOMStringList> indexNames() const = 0; virtual void get(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0; - virtual void put(PassRefPtr<SerializedScriptValue>, PassRefPtr<IDBKey>, bool addOnly, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0; + + enum PutMode { + AddOrUpdate, + AddOnly, + CursorUpdate + }; + virtual void put(PassRefPtr<SerializedScriptValue>, PassRefPtr<IDBKey>, PutMode, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0; virtual void deleteFunction(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0; + virtual void clear(PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, ExceptionCode&) = 0; + virtual PassRefPtr<IDBIndexBackendInterface> createIndex(const String& name, const String& keyPath, bool unique, IDBTransactionBackendInterface*, ExceptionCode&) = 0; virtual PassRefPtr<IDBIndexBackendInterface> index(const String& name, ExceptionCode&) = 0; virtual void deleteIndex(const String& name, IDBTransactionBackendInterface*, ExceptionCode&) = 0; @@ -66,4 +74,3 @@ public: #endif #endif // IDBObjectStoreBackendInterface_h - |