Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
DIDBKey.h37 class IDBKey : public GarbageCollectedFinalized<IDBKey> {
39 typedef HeapVector<Member<IDBKey> > KeyArray;
41 static IDBKey* createInvalid() in createInvalid()
43 return new IDBKey(); in createInvalid()
46 static IDBKey* createNumber(double number) in createNumber()
48 return new IDBKey(NumberType, number); in createNumber()
51 static IDBKey* createBinary(PassRefPtr<SharedBuffer> binary) in createBinary()
53 return new IDBKey(binary); in createBinary()
56 static IDBKey* createString(const String& string) in createString()
58 return new IDBKey(string); in createString()
[all …]
DIDBKey.cpp31 IDBKey::~IDBKey() in ~IDBKey()
35 void IDBKey::trace(Visitor* visitor) in trace()
40 bool IDBKey::isValid() const in isValid()
66 int IDBKey::compare(const IDBKey* other) const in compare()
98 bool IDBKey::isLessThan(const IDBKey* other) const in isLessThan()
104 bool IDBKey::isEqual(const IDBKey* other) const in isEqual()
DIDBKeyRange.h50 …static IDBKeyRange* create(IDBKey* lower, IDBKey* upper, LowerBoundType lowerType, UpperBoundType … in create()
61 IDBKey* lower() const { return m_lower.get(); } in lower()
62 IDBKey* upper() const { return m_upper.get(); } in upper()
74 static IDBKeyRange* only(IDBKey* value, ExceptionState&);
77 IDBKeyRange(IDBKey* lower, IDBKey* upper, LowerBoundType lowerType, UpperBoundType upperType);
79 Member<IDBKey> m_lower;
80 Member<IDBKey> m_upper;
DIDBRequest.h98 …virtual void onSuccess(PassOwnPtr<blink::WebIDBCursor>, IDBKey*, IDBKey* primaryKey, PassRefPtr<Sh…
99 virtual void onSuccess(IDBKey*);
101 …ccess(PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<blink::WebBlobInfo> >, IDBKey*, const IDBKeyPath…
104 …virtual void onSuccess(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<bl…
144 …void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, Pass…
161 Member<IDBKey> m_cursorKey;
162 Member<IDBKey> m_cursorPrimaryKey;
DIDBKeyRange.cpp45 IDBKey* key = scriptValueToIDBKey(toIsolate(context), value); in fromScriptValue()
54 IDBKeyRange::IDBKeyRange(IDBKey* lower, IDBKey* upper, LowerBoundType lowerType, UpperBoundType upp… in IDBKeyRange()
79 IDBKeyRange* IDBKeyRange::only(IDBKey* key, ExceptionState& exceptionState) in only()
91 IDBKey* key = scriptValueToIDBKey(toIsolate(context), keyValue); in only()
102 IDBKey* bound = scriptValueToIDBKey(toIsolate(context), boundValue); in lowerBound()
113 IDBKey* bound = scriptValueToIDBKey(toIsolate(context), boundValue); in upperBound()
124 IDBKey* lower = scriptValueToIDBKey(toIsolate(context), lowerValue); in bound()
125 IDBKey* upper = scriptValueToIDBKey(toIsolate(context), upperValue); in bound()
DIDBCursor.h85 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&);
89 …void setValueReady(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, PassOwnPtr<Vector<…
90 IDBKey* idbPrimaryKey() const { return m_primaryKey; } in idbPrimaryKey()
111 Member<IDBKey> m_key;
112 Member<IDBKey> m_primaryKey;
DIDBRequestTest.cpp87 …request->onSuccess(nullptr, IDBKey::createInvalid(), IDBKey::createInvalid(), nullptr, adoptPtr(ne… in TEST_F()
88 request->onSuccess(IDBKey::createInvalid()); in TEST_F()
90 …(PassRefPtr<SharedBuffer>(nullptr), adoptPtr(new Vector<WebBlobInfo>()), IDBKey::createInvalid(), … in TEST_F()
93 …request->onSuccess(IDBKey::createInvalid(), IDBKey::createInvalid(), nullptr, adoptPtr(new Vector<… in TEST_F()
DIDBAny.h83 …sRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>* blobInfo, IDBKey* key, const IDBKey… in create()
122 const IDBKey* key() const;
133 explicit IDBAny(IDBKey*);
137 IDBAny(PassRefPtr<SharedBuffer>, const Vector<blink::WebBlobInfo>*, IDBKey*, const IDBKeyPath&);
149 const Member<IDBKey> m_idbKey;
DIDBCursor.cpp145IDBKey* keyPathKey = createIDBKeyFromScriptValueAndKeyPath(scriptState->isolate(), value, keyPath); in update()
188IDBKey* key = keyValue.isUndefined() || keyValue.isNull() ? nullptr : scriptValueToIDBKey(scriptSt… in continueFunction()
199 IDBKey* key = scriptValueToIDBKey(scriptState->isolate(), keyValue); in continuePrimaryKey()
200 IDBKey* primaryKey = scriptValueToIDBKey(scriptState->isolate(), primaryKeyValue); in continuePrimaryKey()
208 void IDBCursor::continueFunction(IDBKey* key, IDBKey* primaryKey, ExceptionState& exceptionState) in continueFunction()
351 void IDBCursor::setValueReady(IDBKey* key, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, Pass… in setValueReady()
DIDBRequest.cpp198 void IDBRequest::setResultCursor(IDBCursor* cursor, IDBKey* key, IDBKey* primaryKey, PassRefPtr<Sha… in setResultCursor()
254 void IDBRequest::onSuccess(PassOwnPtr<blink::WebIDBCursor> backend, IDBKey* key, IDBKey* primaryKey… in onSuccess()
275 void IDBRequest::onSuccess(IDBKey* idbKey) in onSuccess()
319 …uffer> prpValueBuffer, PassOwnPtr<Vector<blink::WebBlobInfo> > blobInfo, IDBKey* prpPrimaryKey, co… in onSuccess()
330 IDBKey* primaryKey = prpPrimaryKey; in onSuccess()
371 void IDBRequest::onSuccess(IDBKey* key, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, PassOwn… in onSuccess()
DIDBObjectStore.cpp123IDBKey* indexKey = createIDBKeyFromScriptValueAndKeyPath(isolate, objectValue, indexMetadata.keyPa… in generateIndexKeysForValue()
128 if (!indexMetadata.multiEntry || indexKey->type() != IDBKey::ArrayType) { in generateIndexKeysForValue()
135 ASSERT(indexKey->type() == IDBKey::ArrayType); in generateIndexKeysForValue()
136 indexKey = IDBKey::createMultiEntryArray(indexKey->array()); in generateIndexKeysForValue()
157IDBKey* key = keyValue.isUndefined() ? nullptr : scriptValueToIDBKey(scriptState->isolate(), keyVa… in put()
161 …State, blink::WebIDBPutMode putMode, IDBAny* source, ScriptValue& value, IDBKey* key, ExceptionSta… in put()
198IDBKey* keyPathKey = createIDBKeyFromScriptValueAndKeyPath(scriptState->isolate(), value, keyPath); in put()
357 … cursor->continueFunction(static_cast<IDBKey*>(0), static_cast<IDBKey*>(0), ASSERT_NO_EXCEPTION); in handleEvent()
359 IDBKey* primaryKey = cursor->idbPrimaryKey(); in handleEvent()
DIDBAny.cpp113 const IDBKey* IDBAny::key() const in key()
199 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>* blobInfo, IDBKey* … in IDBAny()
209 IDBAny::IDBAny(IDBKey* key) in IDBAny()
DInspectorIndexedDBAgent.cpp315 static IDBKey* idbKeyFromInspectorObject(JSONObject* key) in idbKeyFromInspectorObject()
317 IDBKey* idbKey; in idbKeyFromInspectorObject()
332 idbKey = IDBKey::createNumber(number); in idbKeyFromInspectorObject()
337 idbKey = IDBKey::createString(string); in idbKeyFromInspectorObject()
342 idbKey = IDBKey::createDate(date); in idbKeyFromInspectorObject()
344 IDBKey::KeyArray keyArray; in idbKeyFromInspectorObject()
353 idbKey = IDBKey::createArray(keyArray); in idbKeyFromInspectorObject()
364 IDBKey* idbLower = lower ? idbKeyFromInspectorObject(lower.get()) : 0; in idbKeyRangeFromKeyRange()
369 IDBKey* idbUpper = upper ? idbKeyFromInspectorObject(upper.get()) : 0; in idbKeyRangeFromKeyRange()
DIDBObjectStore.h91 …IDBRequest* put(ScriptState*, blink::WebIDBPutMode, IDBAny* source, ScriptValue&, IDBKey*, Excepti…
103 typedef HeapVector<Member<IDBKey> > IndexKeys;
DIDBFactory.cpp171 IDBKey* first = scriptValueToIDBKey(scriptState->isolate(), firstValue); in cmp()
172 IDBKey* second = scriptValueToIDBKey(scriptState->isolate(), secondValue); in cmp()
DIDBFactory.h40 class IDBKey; variable
/external/chromium_org/third_party/WebKit/Source/web/
DWebIDBKey.cpp91 static IDBKey* convertFromWebIDBKeyArray(const WebVector<WebIDBKey>& array) in convertFromWebIDBKeyArray()
93 IDBKey::KeyArray keys; in convertFromWebIDBKeyArray()
101 keys.append(IDBKey::createBinary(array[i].binary())); in convertFromWebIDBKeyArray()
104 keys.append(IDBKey::createString(array[i].string())); in convertFromWebIDBKeyArray()
107 keys.append(IDBKey::createDate(array[i].date())); in convertFromWebIDBKeyArray()
110 keys.append(IDBKey::createNumber(array[i].number())); in convertFromWebIDBKeyArray()
113 keys.append(IDBKey::createInvalid()); in convertFromWebIDBKeyArray()
121 return IDBKey::createArray(keys); in convertFromWebIDBKeyArray()
124 static void convertToWebIDBKeyArray(const IDBKey::KeyArray& array, WebVector<WebIDBKey>& result) in convertToWebIDBKeyArray()
129 IDBKey* key = array[i]; in convertToWebIDBKeyArray()
[all …]
DAssertMatchingEnums.cpp487 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeInvalid, IDBKey::InvalidType);
488 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeArray, IDBKey::ArrayType);
489 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeBinary, IDBKey::BinaryType);
490 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeString, IDBKey::StringType);
491 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeDate, IDBKey::DateType);
492 COMPILE_ASSERT_MATCHING_ENUM(WebIDBKeyTypeNumber, IDBKey::NumberType);
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
DIDBBindingUtilitiesTest.cpp39 IDBKey* checkKeyFromValueAndKeyPathInternal(v8::Isolate* isolate, const ScriptValue& value, const S… in checkKeyFromValueAndKeyPathInternal()
52 bool injectKey(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath) in injectKey()
60 void checkInjection(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPat… in checkInjection()
64IDBKey* extractedKey = checkKeyFromValueAndKeyPathInternal(scriptState->isolate(), value, keyPath); in checkInjection()
68 void checkInjectionFails(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& k… in checkInjectionFails()
75 IDBKey* idbKey = checkKeyFromValueAndKeyPathInternal(isolate, value, keyPath); in checkKeyPathStringValue()
77 ASSERT_EQ(IDBKey::StringType, idbKey->type()); in checkKeyPathStringValue()
83 IDBKey* idbKey = checkKeyFromValueAndKeyPathInternal(isolate, value, keyPath); in checkKeyPathNumberValue()
85 ASSERT_EQ(IDBKey::NumberType, idbKey->type()); in checkKeyPathNumberValue()
150 checkInjection(scriptState(), IDBKey::createString("myNewKey"), foozoo, "bar"); in TEST_F()
[all …]
DIDBBindingUtilities.cpp75 static v8::Handle<v8::Value> toV8(const IDBKey* key, v8::Handle<v8::Object> creationContext, v8::Is… in toV8()
84 case IDBKey::InvalidType: in toV8()
85 case IDBKey::MinType: in toV8()
88 case IDBKey::NumberType: in toV8()
90 case IDBKey::StringType: in toV8()
92 case IDBKey::BinaryType: in toV8()
94 case IDBKey::DateType: in toV8()
96 case IDBKey::ArrayType: in toV8()
170 static IDBKey* createIDBKeyFromValue(v8::Isolate* isolate, v8::Handle<v8::Value> value, Vector<v8::… in createIDBKeyFromValue()
173 return IDBKey::createNumber(value->NumberValue()); in createIDBKeyFromValue()
[all …]
DIDBBindingUtilities.h43 class IDBKey; variable
53 IDBKey* createIDBKeyFromScriptValueAndKeyPath(v8::Isolate*, const ScriptValue&, const IDBKeyPath&);
56 ScriptValue idbKeyToScriptValue(ScriptState*, IDBKey*);
57 IDBKey* scriptValueToIDBKey(v8::Isolate*, const ScriptValue&);
61 …riptState*, PassRefPtr<SharedBuffer>, const Vector<blink::WebBlobInfo>*, IDBKey*, const IDBKeyPath…
/external/chromium_org/third_party/WebKit/public/platform/
DWebIDBKey.h36 namespace WebCore { class IDBKey; } variable
80 WebIDBKey(WebCore::IDBKey*);
81 WebIDBKey& operator=(WebCore::IDBKey*);
82 operator WebCore::IDBKey*() const;
86 WebPrivatePtr<WebCore::IDBKey> m_private;
/external/chromium_org/third_party/WebKit/Source/modules/
Dmodules.gypi478 'indexeddb/IDBKey.cpp',
479 'indexeddb/IDBKey.h',
Dmodules.target.linux-x86.mk245 third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp \
Dmodules.target.darwin-arm64.mk245 third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp \

12