Home
last modified time | relevance | path

Searched refs:IDBKey (Results 1 – 25 of 76) sorted by relevance

1234

/external/webkit/Source/WebCore/storage/
DIDBKey.h37 class IDBKey : public ThreadSafeRefCounted<IDBKey> {
39 static PassRefPtr<IDBKey> createNull() in createNull()
41 RefPtr<IDBKey> idbKey(new IDBKey()); in createNull()
46 static PassRefPtr<IDBKey> createNumber(double number) in createNumber()
48 RefPtr<IDBKey> idbKey(new IDBKey()); in createNumber()
54 static PassRefPtr<IDBKey> createString(const String& string) in createString()
56 RefPtr<IDBKey> idbKey(new IDBKey()); in createString()
62 static PassRefPtr<IDBKey> createDate(double date) in createDate()
64 RefPtr<IDBKey> idbKey(new IDBKey()); in createDate()
70 ~IDBKey();
[all …]
DIDBKeyRange.h40 …static PassRefPtr<IDBKeyRange> create(PassRefPtr<IDBKey> lower, PassRefPtr<IDBKey> upper, bool low… in create()
46 PassRefPtr<IDBKey> lower() const { return m_lower; } in lower()
47 PassRefPtr<IDBKey> upper() const { return m_upper; } in upper()
51 static PassRefPtr<IDBKeyRange> only(PassRefPtr<IDBKey> value);
52 static PassRefPtr<IDBKeyRange> lowerBound(PassRefPtr<IDBKey> bound, bool open = false);
53 static PassRefPtr<IDBKeyRange> upperBound(PassRefPtr<IDBKey> bound, bool open = false);
54 …static PassRefPtr<IDBKeyRange> bound(PassRefPtr<IDBKey> lower, PassRefPtr<IDBKey> upper, bool lowe…
57 IDBKeyRange(PassRefPtr<IDBKey> lower, PassRefPtr<IDBKey> upper, bool lowerOpen, bool upperOpen);
59 RefPtr<IDBKey> m_lower;
60 RefPtr<IDBKey> m_upper;
DIDBKey.cpp33 IDBKey::IDBKey() in IDBKey() function in WebCore::IDBKey
38 IDBKey::~IDBKey() in ~IDBKey()
42 bool IDBKey::isLessThan(const IDBKey* other) const in isLessThan()
65 bool IDBKey::isEqual(const IDBKey* other) const in isEqual()
DIDBKeyRange.cpp35 IDBKeyRange::IDBKeyRange(PassRefPtr<IDBKey> lower, PassRefPtr<IDBKey> upper, bool lowerOpen, bool u… in IDBKeyRange()
43 PassRefPtr<IDBKeyRange> IDBKeyRange::only(PassRefPtr<IDBKey> prpValue) in only()
45 RefPtr<IDBKey> value = prpValue; in only()
49 PassRefPtr<IDBKeyRange> IDBKeyRange::lowerBound(PassRefPtr<IDBKey> bound, bool open) in lowerBound()
54 PassRefPtr<IDBKeyRange> IDBKeyRange::upperBound(PassRefPtr<IDBKey> bound, bool open) in upperBound()
59 PassRefPtr<IDBKeyRange> IDBKeyRange::bound(PassRefPtr<IDBKey> lower, PassRefPtr<IDBKey> upper, bool… in bound()
DIDBSQLiteBackingStore.cpp322 static String whereSyntaxForKey(const IDBKey& key, String qualifiedTableName = "") in whereSyntaxForKey()
325 case IDBKey::StringType: in whereSyntaxForKey()
327 case IDBKey::NumberType: in whereSyntaxForKey()
329 case IDBKey::DateType: in whereSyntaxForKey()
331 case IDBKey::NullType: in whereSyntaxForKey()
340 static int bindKeyToQuery(SQLiteStatement& query, int column, const IDBKey& key) in bindKeyToQuery()
343 case IDBKey::StringType: in bindKeyToQuery()
346 case IDBKey::DateType: in bindKeyToQuery()
349 case IDBKey::NumberType: in bindKeyToQuery()
352 case IDBKey::NullType: in bindKeyToQuery()
[all …]
DIDBBackingStore.h41 class IDBKey; variable
63 … virtual String getObjectStoreRecord(int64_t databaseId, int64_t objectStoreId, const IDBKey&) = 0;
64 …virtual bool putObjectStoreRecord(int64_t databaseId, int64_t objectStoreId, const IDBKey&, const …
68 …virtual bool keyExistsInObjectStore(int64_t databaseId, int64_t objectStoreId, const IDBKey&, Obje…
80 …Record(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, const ObjectStor…
82 …g getObjectViaIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&) = 0;
83 …virtual PassRefPtr<IDBKey> getPrimaryKeyViaIndex(int64_t databaseId, int64_t objectStoreId, int64_…
84 …ol keyExistsInIndex(int64_t databaseid, int64_t objectStoreId, int64_t indexId, const IDBKey&) = 0;
88 virtual bool continueFunction(const IDBKey* = 0) = 0;
89 virtual PassRefPtr<IDBKey> key() = 0;
[all …]
DIDBObjectStoreBackendImpl.cpp84 void IDBObjectStoreBackendImpl::get(PassRefPtr<IDBKey> prpKey, PassRefPtr<IDBCallbacks> prpCallback… in get()
87 RefPtr<IDBKey> key = prpKey; in get()
93 …nContext*, PassRefPtr<IDBObjectStoreBackendImpl> objectStore, PassRefPtr<IDBKey> key, PassRefPtr<I… in getInternal()
104 static PassRefPtr<IDBKey> fetchKeyFromKeyPath(SerializedScriptValue* value, const String& keyPath) in fetchKeyFromKeyPath()
108 Vector<RefPtr<IDBKey> > keys; in fetchKeyFromKeyPath()
116 static PassRefPtr<SerializedScriptValue> injectKeyIntoKeyPath(PassRefPtr<IDBKey> key, PassRefPtr<Se… in injectKeyIntoKeyPath()
121 void IDBObjectStoreBackendImpl::put(PassRefPtr<SerializedScriptValue> prpValue, PassRefPtr<IDBKey> … in put()
130 RefPtr<IDBKey> key = prpKey; in put()
139 PassRefPtr<IDBKey> IDBObjectStoreBackendImpl::selectKeyForPut(IDBObjectStoreBackendImpl* objectStor… in selectKeyForPut()
162 RefPtr<IDBKey> keyPathKey = fetchKeyFromKeyPath(value.get(), objectStore->m_keyPath); in selectKeyForPut()
[all …]
DIDBObjectStoreBackendImpl.h69 …virtual void get(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*…
70 …virtual void put(PassRefPtr<SerializedScriptValue>, PassRefPtr<IDBKey>, PutMode, PassRefPtr<IDBCal…
71 …virtual void deleteFunction(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks>, IDBTransactionBacken…
85 PassRefPtr<IDBKey> genAutoIncrementKey();
87 …static PassRefPtr<IDBKey> selectKeyForPut(IDBObjectStoreBackendImpl*, IDBKey*, PutMode, IDBCallbac…
89 …riptExecutionContext*, PassRefPtr<IDBObjectStoreBackendImpl>, PassRefPtr<IDBKey> key, PassRefPtr<I…
90 …DBObjectStoreBackendImpl>, PassRefPtr<SerializedScriptValue>, PassRefPtr<IDBKey>, PutMode, PassRef…
91 …riptExecutionContext*, PassRefPtr<IDBObjectStoreBackendImpl>, PassRefPtr<IDBKey> key, PassRefPtr<I…
DIDBSQLiteBackingStore.h47 virtual String getObjectStoreRecord(int64_t databaseId, int64_t objectStoreId, const IDBKey&);
48 …virtual bool putObjectStoreRecord(int64_t databaseId, int64_t objectStoreId, const IDBKey&, const …
52 …virtual bool keyExistsInObjectStore(int64_t databaseId, int64_t objectStoreId, const IDBKey&, Obje…
59 …Record(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, const ObjectStor…
61 …tring getObjectViaIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&);
62 …virtual PassRefPtr<IDBKey> getPrimaryKeyViaIndex(int64_t databaseId, int64_t objectStoreId, int64_…
63 …l bool keyExistsInIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&);
DIDBLevelDBBackingStore.h52 virtual String getObjectStoreRecord(int64_t databaseId, int64_t objectStoreId, const IDBKey&);
53 …virtual bool putObjectStoreRecord(int64_t databaseId, int64_t objectStoreId, const IDBKey&, const …
57 …virtual bool keyExistsInObjectStore(int64_t databaseId, int64_t objectStoreId, const IDBKey&, Obje…
64 …Record(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&, const ObjectStor…
66 …tring getObjectViaIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&);
67 …virtual PassRefPtr<IDBKey> getPrimaryKeyViaIndex(int64_t databaseId, int64_t objectStoreId, int64_…
68 …l bool keyExistsInIndex(int64_t databaseId, int64_t objectStoreId, int64_t indexId, const IDBKey&);
DIDBCursorBackendImpl.cpp62 PassRefPtr<IDBKey> IDBCursorBackendImpl::key() const in key()
67 PassRefPtr<IDBKey> IDBCursorBackendImpl::primaryKey() const in primaryKey()
88 void IDBCursorBackendImpl::continueFunction(PassRefPtr<IDBKey> prpKey, PassRefPtr<IDBCallbacks> prp… in continueFunction()
91 RefPtr<IDBKey> key = prpKey; in continueFunction()
99 …xecutionContext*, PassRefPtr<IDBCursorBackendImpl> prpCursor, PassRefPtr<IDBKey> prpKey, PassRefPt… in continueFunctionInternal()
102 RefPtr<IDBKey> key = prpKey; in continueFunctionInternal()
DIDBKeyRange.idl31 readonly attribute IDBKey lower;
32 readonly attribute IDBKey upper;
37 [ClassMethod] IDBKeyRange only(in IDBKey value);
38 [ClassMethod] IDBKeyRange lowerBound(in IDBKey bound, in [Optional] boolean open);
39 [ClassMethod] IDBKeyRange upperBound(in IDBKey bound, in [Optional] boolean open);
40 …[ClassMethod] IDBKeyRange bound(in IDBKey lower, in IDBKey upper, in [Optional] boolean lowerOpen,…
DIDBCursorBackendInterface.h40 class IDBKey; variable
56 virtual PassRefPtr<IDBKey> key() const = 0;
57 virtual PassRefPtr<IDBKey> primaryKey() const = 0;
61 …virtual void continueFunction(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks>, ExceptionCode&) = …
DIDBObjectStoreBackendInterface.h40 class IDBKey; variable
53 …virtual void get(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, Ex…
60 …virtual void put(PassRefPtr<SerializedScriptValue>, PassRefPtr<IDBKey>, PutMode, PassRefPtr<IDBCal…
61 …virtual void deleteFunction(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInt…
DIDBCursorBackendImpl.h58 virtual PassRefPtr<IDBKey> key() const;
59 virtual PassRefPtr<IDBKey> primaryKey() const;
62 virtual void continueFunction(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, ExceptionCode&);
68 …al(ScriptExecutionContext*, PassRefPtr<IDBCursorBackendImpl>, PassRefPtr<IDBKey>, PassRefPtr<IDBCa…
DIDBKeyPathBackendImpl.h35 class IDBKey; variable
40 …RefPtr<SerializedScriptValue>, 0>& values, const String& keyPath, Vector<RefPtr<IDBKey>, 0>& keys);
41 …static PassRefPtr<SerializedScriptValue> injectIDBKeyIntoSerializedValue(PassRefPtr<IDBKey>, PassR…
DIDBIndexBackendImpl.h37 class IDBKey; variable
61 bool addingKeyAllowed(IDBKey*);
71 …virtual void get(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*, Ex…
72 …virtual void getKey(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*,…
79 …nal(ScriptExecutionContext*, PassRefPtr<IDBIndexBackendImpl>, PassRefPtr<IDBKey>, bool getObject, …
/external/webkit/Source/WebKit/chromium/tests/
DIDBBindingUtilitiesTest.cpp60 PassRefPtr<IDBKey> checkKeyFromValueAndKeyPathInternal(SerializedScriptValue* value, const String& … in checkKeyFromValueAndKeyPathInternal()
71 RefPtr<IDBKey> idbKey = checkKeyFromValueAndKeyPathInternal(value, keyPath); in checkKeyPathNullValue()
75 PassRefPtr<SerializedScriptValue> injectKey(PassRefPtr<IDBKey> key, PassRefPtr<SerializedScriptValu… in injectKey()
84 void checkInjection(PassRefPtr<IDBKey> prpKey, PassRefPtr<SerializedScriptValue> value, const Strin… in checkInjection()
86 RefPtr<IDBKey> key = prpKey; in checkInjection()
89 RefPtr<IDBKey> extractedKey = checkKeyFromValueAndKeyPathInternal(newValue.get(), keyPath); in checkInjection()
93 void checkInjectionFails(PassRefPtr<IDBKey> key, PassRefPtr<SerializedScriptValue> value, const Str… in checkInjectionFails()
100 RefPtr<IDBKey> idbKey = checkKeyFromValueAndKeyPathInternal(value, keyPath); in checkKeyPathStringValue()
102 ASSERT_EQ(IDBKey::StringType, idbKey->type()); in checkKeyPathStringValue()
108 RefPtr<IDBKey> idbKey = checkKeyFromValueAndKeyPathInternal(value, keyPath); in checkKeyPathNumberValue()
[all …]
/external/webkit/Source/WebCore/bindings/v8/custom/
DV8IDBKeyCustom.cpp39 v8::Handle<v8::Value> toV8(IDBKey* key) in toV8()
45 case IDBKey::NullType: in toV8()
47 case IDBKey::NumberType: in toV8()
49 case IDBKey::StringType: in toV8()
51 case IDBKey::DateType: in toV8()
/external/webkit/Source/WebKit/chromium/src/
DWebIDBKey.cpp98 m_private = IDBKey::createNull(); in assignNull()
103 m_private = IDBKey::createString(string); in assignString()
108 m_private = IDBKey::createDate(date); in assignDate()
113 m_private = IDBKey::createNumber(number); in assignNumber()
148 WebIDBKey::WebIDBKey(const PassRefPtr<IDBKey>& value) in WebIDBKey()
153 WebIDBKey& WebIDBKey::operator=(const PassRefPtr<IDBKey>& value) in operator =()
159 WebIDBKey::operator PassRefPtr<IDBKey>() const in operator PassRefPtr<IDBKey>()
/external/webkit/Source/WebCore/bindings/js/
DJSIDBKeyCustom.cpp40 JSValue toJS(ExecState* exec, JSDOMGlobalObject*, IDBKey* key) in toJS()
46 case IDBKey::NullType: in toJS()
48 case IDBKey::NumberType: in toJS()
50 case IDBKey::StringType: in toJS()
DIDBBindingUtilities.cpp35 PassRefPtr<IDBKey> createIDBKeyFromValue(JSC::ExecState* exec, JSC::JSValue value) in createIDBKeyFromValue()
38 return IDBKey::create(); in createIDBKeyFromValue()
40 return IDBKey::create(value.toInt32(exec)); in createIDBKeyFromValue()
42 return IDBKey::create(ustringToString(value.toString(exec))); in createIDBKeyFromValue()
/external/webkit/Source/WebCore/bindings/v8/
DIDBBindingUtilities.h36 class IDBKey; variable
40 PassRefPtr<IDBKey> createIDBKeyFromValue(v8::Handle<v8::Value>);
41 PassRefPtr<IDBKey> createIDBKeyFromSerializedValueAndKeyPath(PassRefPtr<SerializedScriptValue> valu…
42 PassRefPtr<SerializedScriptValue> injectIDBKeyIntoSerializedValue(PassRefPtr<IDBKey>, PassRefPtr<Se…
DIDBBindingUtilities.cpp41 PassRefPtr<IDBKey> createIDBKeyFromValue(v8::Handle<v8::Value> value) in createIDBKeyFromValue()
44 return IDBKey::createNull(); in createIDBKeyFromValue()
46 return IDBKey::createNumber(value->NumberValue()); in createIDBKeyFromValue()
48 return IDBKey::createString(v8ValueToWebCoreString(value)); in createIDBKeyFromValue()
50 return IDBKey::createDate(value->NumberValue()); in createIDBKeyFromValue()
135 PassRefPtr<IDBKey> createIDBKeyFromSerializedValueAndKeyPath(PassRefPtr<SerializedScriptValue> valu… in createIDBKeyFromSerializedValueAndKeyPath()
145 PassRefPtr<SerializedScriptValue> injectIDBKeyIntoSerializedValue(PassRefPtr<IDBKey> key, PassRefPt… in injectIDBKeyIntoSerializedValue()
/external/webkit/Source/WebKit/chromium/public/
DWebIDBKey.h33 namespace WebCore { class IDBKey; } variable
84 WebIDBKey(const WTF::PassRefPtr<WebCore::IDBKey>&);
85 WebIDBKey& operator=(const WTF::PassRefPtr<WebCore::IDBKey>&);
86 operator WTF::PassRefPtr<WebCore::IDBKey>() const;
90 WebPrivatePtr<WebCore::IDBKey> m_private;

1234