X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fthird_party%2FWebKit%2FSource%2Fmodules%2Findexeddb%2FIDBObjectStore.h;h=9f4b3f36e1115f9e03580322fe96d386b3b68eee;hb=3545e9f2671f595d2a2f3ee75ca0393b01e35ef6;hp=ecd8d24a82d716d23216acb9e3ec6568ace566b4;hpb=7d210d4c7e9ba36e635eabc5b5780495f8a63292;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h b/src/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h index ecd8d24..9f4b3f3 100644 --- a/src/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h +++ b/src/third_party/WebKit/Source/modules/indexeddb/IDBObjectStore.h @@ -26,11 +26,11 @@ #ifndef IDBObjectStore_h #define IDBObjectStore_h -#include "bindings/core/v8/Dictionary.h" #include "bindings/core/v8/ScriptWrappable.h" #include "bindings/core/v8/SerializedScriptValue.h" #include "modules/indexeddb/IDBCursor.h" #include "modules/indexeddb/IDBIndex.h" +#include "modules/indexeddb/IDBIndexParameters.h" #include "modules/indexeddb/IDBKey.h" #include "modules/indexeddb/IDBKeyRange.h" #include "modules/indexeddb/IDBMetadata.h" @@ -50,6 +50,7 @@ class IDBAny; class ExceptionState; class IDBObjectStore : public GarbageCollectedFinalized, public ScriptWrappable { + DEFINE_WRAPPERTYPEINFO(); public: static IDBObjectStore* create(const IDBObjectStoreMetadata& metadata, IDBTransaction* transaction) { @@ -69,16 +70,16 @@ public: IDBRequest* openCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&); IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const String& direction, ExceptionState&); IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); - IDBRequest* add(ScriptState*, ScriptValue&, const ScriptValue& key, ExceptionState&); - IDBRequest* put(ScriptState*, ScriptValue&, const ScriptValue& key, ExceptionState&); + IDBRequest* add(ScriptState*, const ScriptValue&, const ScriptValue& key, ExceptionState&); + IDBRequest* put(ScriptState*, const ScriptValue&, const ScriptValue& key, ExceptionState&); IDBRequest* deleteFunction(ScriptState*, const ScriptValue& key, ExceptionState&); IDBRequest* clear(ScriptState*, ExceptionState&); - IDBIndex* createIndex(ScriptState* scriptState, const String& name, const String& keyPath, const Dictionary& options, ExceptionState& exceptionState) + IDBIndex* createIndex(ScriptState* scriptState, const String& name, const String& keyPath, const IDBIndexParameters& options, ExceptionState& exceptionState) { return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState); } - IDBIndex* createIndex(ScriptState* scriptState, const String& name, const Vector& keyPath, const Dictionary& options, ExceptionState& exceptionState) + IDBIndex* createIndex(ScriptState* scriptState, const String& name, const Vector& keyPath, const IDBIndexParameters& options, ExceptionState& exceptionState) { return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState); } @@ -88,7 +89,7 @@ public: IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&); // Used by IDBCursor::update(): - IDBRequest* put(ScriptState*, WebIDBPutMode, IDBAny* source, ScriptValue&, IDBKey*, ExceptionState&); + IDBRequest* put(ScriptState*, WebIDBPutMode, IDBAny* source, const ScriptValue&, IDBKey*, ExceptionState&); // Used internally and by InspectorIndexedDBAgent: IDBRequest* openCursor(ScriptState*, IDBKeyRange*, WebIDBCursorDirection, WebIDBTaskType = WebIDBTaskTypeNormal); @@ -107,9 +108,8 @@ public: private: IDBObjectStore(const IDBObjectStoreMetadata&, IDBTransaction*); - IDBIndex* createIndex(ScriptState*, const String& name, const IDBKeyPath&, const Dictionary&, ExceptionState&); - IDBIndex* createIndex(ScriptState*, const String& name, const IDBKeyPath&, bool unique, bool multiEntry, ExceptionState&); - IDBRequest* put(ScriptState*, WebIDBPutMode, IDBAny* source, ScriptValue&, const ScriptValue& key, ExceptionState&); + IDBIndex* createIndex(ScriptState*, const String& name, const IDBKeyPath&, const IDBIndexParameters&, ExceptionState&); + IDBRequest* put(ScriptState*, WebIDBPutMode, IDBAny* source, const ScriptValue&, const ScriptValue& key, ExceptionState&); int64_t findIndexId(const String& name) const; bool containsIndex(const String& name) const