Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(241)

Issue 22893058: IndexedDB: Replace IDL operation overloading with ScriptValue handling (Closed)

Created:
7 years, 4 months ago by jsbell
Modified:
7 years, 3 months ago
Reviewers:
haraken
CC:
blink-reviews, eae+blinkwatch, apavlov+blink_chromium.org, adamk+blink_chromium.org, aandrey+blink_chromium.org, do-not-use, Nils Barth (inactive), caseq+blink_chromium.org, Nate Chapin, alecflett, yurys+blink_chromium.org, abarth-chromium, marja+watch_chromium.org, dglazkov+blink, devtools-reviews_chromium.org, loislo+blink_chromium.org, lushnikov+blink_chromium.org, eustas+blink_chromium.org, paulirish+reviews_chromium.org, haraken, kojih, jsbell, jsbell+bindings_chromium.org, alph+blink_chromium.org, vsevik+blink_chromium.org, pfeldman+blink_chromium.org, dgrogan
Visibility:
Public.

Description

IndexedDB: Replace IDL operation overloading with ScriptValue handling The IDB spec has many IDL methods that take |any key| and in prose have "if key is not a valid key or IDBKeyRange, throw; otherwise ..."; these ended up being implemented incrementally in Blink using overloads in the IDL and .h/.cpp, and counting on nonstandard overload handling in the code generator. Update the Blink IDLs to mostly match the spec IDLs, and do the ScriptValue to IDBKey or IDBKeyRange conversion via explicit calls to a binding helper. This simplifies the IDL and implementations, and will make future additions easier. No behavior changes. R=haraken@chromium.org Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=156716

Patch Set 1 #

Patch Set 2 : Retrying upload #

Patch Set 3 : Rename and fix method documentation #

Total comments: 17

Patch Set 4 : Remove assert, per review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -127 lines) Patch
M Source/bindings/v8/IDBBindingUtilities.h View 2 chunks +2 lines, -0 lines 0 comments Download
M Source/bindings/v8/IDBBindingUtilities.cpp View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M Source/core/inspector/InspectorIndexedDBAgent.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBIndex.h View 1 2 3 1 chunk +5 lines, -7 lines 0 comments Download
M Source/modules/indexeddb/IDBIndex.cpp View 1 2 7 chunks +29 lines, -49 lines 0 comments Download
M Source/modules/indexeddb/IDBIndex.idl View 1 chunk +3 lines, -11 lines 0 comments Download
M Source/modules/indexeddb/IDBKeyRange.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M Source/modules/indexeddb/IDBKeyRange.cpp View 1 2 1 chunk +19 lines, -0 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.h View 1 2 3 3 chunks +5 lines, -7 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.cpp View 1 2 9 chunks +33 lines, -45 lines 0 comments Download
M Source/modules/indexeddb/IDBObjectStore.idl View 1 chunk +2 lines, -6 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
jsbell
Motivation: I was going to add IDBObjectStore.openKeyCursor() that we've discussed w/ Moz, and the overloading ...
7 years, 4 months ago (2013-08-23 21:48:25 UTC) #1
haraken
Sorry for being late. LGTM with comments. https://codereview.chromium.org/22893058/diff/10001/Source/bindings/v8/IDBBindingUtilities.cpp File Source/bindings/v8/IDBBindingUtilities.cpp (right): https://codereview.chromium.org/22893058/diff/10001/Source/bindings/v8/IDBBindingUtilities.cpp#newcode338 Source/bindings/v8/IDBBindingUtilities.cpp:338: ASSERT(v8::Context::InContext()); Why ...
7 years, 4 months ago (2013-08-25 23:51:06 UTC) #2
jsbell
https://codereview.chromium.org/22893058/diff/10001/Source/bindings/v8/IDBBindingUtilities.cpp File Source/bindings/v8/IDBBindingUtilities.cpp (right): https://codereview.chromium.org/22893058/diff/10001/Source/bindings/v8/IDBBindingUtilities.cpp#newcode338 Source/bindings/v8/IDBBindingUtilities.cpp:338: ASSERT(v8::Context::InContext()); On 2013/08/25 23:51:06, haraken wrote: > > Why ...
7 years, 3 months ago (2013-08-26 16:06:17 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jsbell@chromium.org/22893058/17001
7 years, 3 months ago (2013-08-26 16:51:33 UTC) #4
commit-bot: I haz the power
7 years, 3 months ago (2013-08-26 18:40:26 UTC) #5
Message was sent while issue was closed.
Change committed as 156716

Powered by Google App Engine
This is Rietveld 408576698