Home
last modified time | relevance | path

Searched refs:IDBKey (Results 1 – 25 of 35) 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.h51 …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.h99 …virtual void onSuccess(PassOwnPtr<WebIDBCursor>, IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuf…
100 virtual void onSuccess(IDBKey*);
102 …virtual void onSuccess(PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<WebBlobInfo> >, IDBKey*, const …
105 …virtual void onSuccess(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer>, PassOwnPtr<Vector<We…
145 …void setResultCursor(IDBCursor*, IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, Pass…
163 Member<IDBKey> m_cursorKey;
164 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()
78 IDBKeyRange* IDBKeyRange::only(IDBKey* key, ExceptionState& exceptionState) in only()
90 IDBKey* key = scriptValueToIDBKey(toIsolate(context), keyValue); in only()
101 IDBKey* bound = scriptValueToIDBKey(toIsolate(context), boundValue); in lowerBound()
112 IDBKey* bound = scriptValueToIDBKey(toIsolate(context), boundValue); in upperBound()
123 IDBKey* lower = scriptValueToIDBKey(toIsolate(context), lowerValue); in bound()
124 IDBKey* upper = scriptValueToIDBKey(toIsolate(context), upperValue); in bound()
DIDBCursor.h76 void continueFunction(IDBKey*, IDBKey* primaryKey, ExceptionState&);
80 …void setValueReady(IDBKey*, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, PassOwnPtr<Vector<…
81 IDBKey* idbPrimaryKey() const { return m_primaryKey; } in idbPrimaryKey()
102 Member<IDBKey> m_key;
103 Member<IDBKey> m_primaryKey;
DIDBRequestTest.cpp85 …request->onSuccess(nullptr, IDBKey::createInvalid(), IDBKey::createInvalid(), nullptr, adoptPtr(ne… in TEST_F()
86 request->onSuccess(IDBKey::createInvalid()); in TEST_F()
88 …(PassRefPtr<SharedBuffer>(nullptr), adoptPtr(new Vector<WebBlobInfo>()), IDBKey::createInvalid(), … in TEST_F()
91 …request->onSuccess(IDBKey::createInvalid(), IDBKey::createInvalid(), nullptr, adoptPtr(new Vector<… in TEST_F()
DIDBAny.h76 …ate(PassRefPtr<SharedBuffer> value, const Vector<WebBlobInfo>* blobInfo, IDBKey* key, const IDBKey… in create()
115 const IDBKey* key() const;
126 explicit IDBAny(IDBKey*);
130 IDBAny(PassRefPtr<SharedBuffer>, const Vector<WebBlobInfo>*, IDBKey*, const IDBKeyPath&);
142 const Member<IDBKey> m_idbKey;
DIDBRequest.cpp202 void IDBRequest::setResultCursor(IDBCursor* cursor, IDBKey* key, IDBKey* primaryKey, PassRefPtr<Sha… in setResultCursor()
266 void IDBRequest::onSuccess(PassOwnPtr<WebIDBCursor> backend, IDBKey* key, IDBKey* primaryKey, PassR… in onSuccess()
287 void IDBRequest::onSuccess(IDBKey* idbKey) in onSuccess()
330 …SharedBuffer> prpValueBuffer, PassOwnPtr<Vector<WebBlobInfo> > blobInfo, IDBKey* prpPrimaryKey, co… in onSuccess()
339 IDBKey* primaryKey = prpPrimaryKey; in onSuccess()
379 void IDBRequest::onSuccess(IDBKey* key, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, PassOwn… in onSuccess()
DIDBCursor.cpp159IDBKey* key = keyValue.isUndefined() || keyValue.isNull() ? nullptr : scriptValueToIDBKey(scriptSt… in continueFunction()
170 IDBKey* key = scriptValueToIDBKey(scriptState->isolate(), keyValue); in continuePrimaryKey()
171 IDBKey* primaryKey = scriptValueToIDBKey(scriptState->isolate(), primaryKeyValue); in continuePrimaryKey()
179 void IDBCursor::continueFunction(IDBKey* key, IDBKey* primaryKey, ExceptionState& exceptionState) in continueFunction()
322 void IDBCursor::setValueReady(IDBKey* key, IDBKey* primaryKey, PassRefPtr<SharedBuffer> value, Pass… in setValueReady()
DIDBObjectStore.cpp122IDBKey* indexKey = createIDBKeyFromScriptValueAndKeyPath(isolate, objectValue, indexMetadata.keyPa… in generateIndexKeysForValue()
127 if (!indexMetadata.multiEntry || indexKey->type() != IDBKey::ArrayType) { in generateIndexKeysForValue()
134 ASSERT(indexKey->type() == IDBKey::ArrayType); in generateIndexKeysForValue()
135 indexKey = IDBKey::createMultiEntryArray(indexKey->array()); in generateIndexKeysForValue()
156IDBKey* key = keyValue.isUndefined() ? nullptr : scriptValueToIDBKey(scriptState->isolate(), keyVa… in put()
160 …tState, WebIDBPutMode putMode, IDBAny* source, const ScriptValue& value, IDBKey* key, ExceptionSta… in put()
203IDBKey* keyPathKey = createIDBKeyFromScriptValueAndKeyPath(scriptState->isolate(), clone, keyPath); in put()
217IDBKey* keyPathKey = createIDBKeyFromScriptValueAndKeyPath(scriptState->isolate(), clone, keyPath); in put()
378 … cursor->continueFunction(static_cast<IDBKey*>(0), static_cast<IDBKey*>(0), ASSERT_NO_EXCEPTION); in handleEvent()
380 IDBKey* primaryKey = cursor->idbPrimaryKey(); in handleEvent()
DIDBAny.cpp113 const IDBKey* IDBAny::key() const in key()
199 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<WebBlobInfo>* blobInfo, IDBKey* key, co… in IDBAny()
209 IDBAny::IDBAny(IDBKey* key) in IDBAny()
DInspectorIndexedDBAgent.cpp316 static IDBKey* idbKeyFromInspectorObject(JSONObject* key) in idbKeyFromInspectorObject()
318 IDBKey* idbKey; in idbKeyFromInspectorObject()
333 idbKey = IDBKey::createNumber(number); in idbKeyFromInspectorObject()
338 idbKey = IDBKey::createString(string); in idbKeyFromInspectorObject()
343 idbKey = IDBKey::createDate(date); in idbKeyFromInspectorObject()
345 IDBKey::KeyArray keyArray; in idbKeyFromInspectorObject()
354 idbKey = IDBKey::createArray(keyArray); in idbKeyFromInspectorObject()
365 IDBKey* idbLower = lower ? idbKeyFromInspectorObject(lower.get()) : 0; in idbKeyRangeFromKeyRange()
370 IDBKey* idbUpper = upper ? idbKeyFromInspectorObject(upper.get()) : 0; in idbKeyRangeFromKeyRange()
DIDBObjectStore.h92 …IDBRequest* put(ScriptState*, WebIDBPutMode, IDBAny* source, const ScriptValue&, IDBKey*, Exceptio…
104 typedef HeapVector<Member<IDBKey> > IndexKeys;
DIDBFactory.cpp166 IDBKey* first = scriptValueToIDBKey(scriptState->isolate(), firstValue); in cmp()
167 IDBKey* second = scriptValueToIDBKey(scriptState->isolate(), secondValue); in cmp()
DIDBFactory.h40 class IDBKey; variable
/external/chromium_org/third_party/WebKit/Source/web/
DWebIDBKey.cpp89 static IDBKey* convertFromWebIDBKeyArray(const WebVector<WebIDBKey>& array) in convertFromWebIDBKeyArray()
91 IDBKey::KeyArray keys; in convertFromWebIDBKeyArray()
99 keys.append(IDBKey::createBinary(array[i].binary())); in convertFromWebIDBKeyArray()
102 keys.append(IDBKey::createString(array[i].string())); in convertFromWebIDBKeyArray()
105 keys.append(IDBKey::createDate(array[i].date())); in convertFromWebIDBKeyArray()
108 keys.append(IDBKey::createNumber(array[i].number())); in convertFromWebIDBKeyArray()
111 keys.append(IDBKey::createInvalid()); in convertFromWebIDBKeyArray()
119 return IDBKey::createArray(keys); in convertFromWebIDBKeyArray()
122 static void convertToWebIDBKeyArray(const IDBKey::KeyArray& array, WebVector<WebIDBKey>& result) in convertToWebIDBKeyArray()
127 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/modules/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.h37 class IDBKey; variable
48 IDBKey* createIDBKeyFromScriptValueAndKeyPath(v8::Isolate*, const ScriptValue&, const IDBKeyPath&);
51 ScriptValue idbKeyToScriptValue(ScriptState*, IDBKey*);
52 IDBKey* scriptValueToIDBKey(v8::Isolate*, const ScriptValue&);
57 …riptState*, PassRefPtr<SharedBuffer>, const Vector<blink::WebBlobInfo>*, IDBKey*, const IDBKeyPath…
/external/chromium_org/third_party/WebKit/public/platform/
DWebIDBKey.h38 class IDBKey; variable
80 WebIDBKey(IDBKey*);
81 WebIDBKey& operator=(IDBKey*);
82 operator IDBKey*() const;
86 WebPrivatePtr<IDBKey> m_private;
/external/chromium_org/third_party/WebKit/Source/modules/
Dmodules.gypi533 'indexeddb/IDBKey.cpp',
534 'indexeddb/IDBKey.h',
Dmodules.target.darwin-x86.mk229 third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp \
Dmodules.target.linux-mips64.mk229 third_party/WebKit/Source/modules/indexeddb/IDBKey.cpp \

12