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

Issue 386883008: Converted IDBVersionChangeEvent.dataLoss to an enumeration: IDBDataLossAmount (Closed)

Created:
6 years, 5 months ago by cmumford
Modified:
6 years, 5 months ago
Reviewers:
haraken, tasak, jsbell, bashi
CC:
blink-reviews, arv+blink, alecflett, ericu+idb_chromium.org, abarth-chromium, blink-reviews-bindings_chromium.org, dgrogan, jsbell+idb_chromium.org, tasak (please_use_google.com)
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Project:
blink
Visibility:
Public.

Description

Previous implementation was a DOMString. This change also validates values when constructing IDBVersionChangeEvent instances only allowing the correct enumeration values. BUG=358067 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=178517

Patch Set 1 #

Patch Set 2 : Enhanced layout tests to set/get dataLoss #

Patch Set 3 : Added link to W3C's IDL spec #

Total comments: 12

Patch Set 4 : Moved integral DictionaryType to header file for sharing #

Patch Set 5 : Bindings no longer know about IDB enumeration #

Total comments: 3

Patch Set 6 : Removed ASSERT_NOT_REACHED #

Patch Set 7 : Rebase required due to the WebCore -> bling namespace rename. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+38 lines, -4 lines) Patch
M LayoutTests/storage/indexeddb/event-init.html View 1 3 chunks +12 lines, -0 lines 0 comments Download
M LayoutTests/storage/indexeddb/event-init-expected.txt View 1 3 chunks +11 lines, -0 lines 0 comments Download
M Source/modules/indexeddb/IDBVersionChangeEvent.h View 1 2 3 4 5 6 2 chunks +2 lines, -1 line 0 comments Download
M Source/modules/indexeddb/IDBVersionChangeEvent.cpp View 1 2 3 4 5 6 2 chunks +4 lines, -2 lines 0 comments Download
M Source/modules/indexeddb/IDBVersionChangeEvent.idl View 1 2 3 2 chunks +9 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
cmumford
This is the last IDB enumeration IDL change - the one required to start implementing ...
6 years, 5 months ago (2014-07-11 17:47:35 UTC) #1
cmumford
+nbarth for bindings owner.
6 years, 5 months ago (2014-07-11 17:49:30 UTC) #2
Nils Barth (inactive)
On 2014/07/11 17:49:30, cmumford wrote: > +nbarth for bindings owner. Looks fine AFAICT, but +haraken ...
6 years, 5 months ago (2014-07-11 18:07:47 UTC) #3
jsbell
not lgtm * v8-specific code is leaking out of bindings/ * Module-specific logic is leaking ...
6 years, 5 months ago (2014-07-11 18:42:48 UTC) #4
cmumford
https://codereview.chromium.org/386883008/diff/40001/Source/bindings/modules/v8/DictionaryHelperForModules.cpp File Source/bindings/modules/v8/DictionaryHelperForModules.cpp (right): https://codereview.chromium.org/386883008/diff/40001/Source/bindings/modules/v8/DictionaryHelperForModules.cpp#newcode43 Source/bindings/modules/v8/DictionaryHelperForModules.cpp:43: #include "public/platform/WebIDBTypes.h" On 2014/07/11 18:42:48, jsbell wrote: > It'd ...
6 years, 5 months ago (2014-07-11 20:53:06 UTC) #5
jsbell
https://codereview.chromium.org/386883008/diff/40001/Source/bindings/modules/v8/DictionaryHelperForModules.cpp File Source/bindings/modules/v8/DictionaryHelperForModules.cpp (right): https://codereview.chromium.org/386883008/diff/40001/Source/bindings/modules/v8/DictionaryHelperForModules.cpp#newcode77 Source/bindings/modules/v8/DictionaryHelperForModules.cpp:77: template <typename T> On 2014/07/11 20:53:05, cmumford wrote: > ...
6 years, 5 months ago (2014-07-11 23:08:30 UTC) #6
haraken
+tasak for the Dictionary stuff
6 years, 5 months ago (2014-07-12 15:48:46 UTC) #7
bashi
It seems that what this CL wants to do is IDL enum -> C++ enum ...
6 years, 5 months ago (2014-07-13 04:53:32 UTC) #8
cmumford
Am researching requested change to remove enum conversion form DictionaryHelper. https://codereview.chromium.org/386883008/diff/40001/Source/bindings/modules/v8/DictionaryHelperForModules.cpp File Source/bindings/modules/v8/DictionaryHelperForModules.cpp (right): https://codereview.chromium.org/386883008/diff/40001/Source/bindings/modules/v8/DictionaryHelperForModules.cpp#newcode107 ...
6 years, 5 months ago (2014-07-14 22:09:37 UTC) #9
cmumford
Fixed implementation to push IDB enumeration out of bindings. PTAL.
6 years, 5 months ago (2014-07-16 20:40:32 UTC) #10
jsbell
https://codereview.chromium.org/386883008/diff/80001/Source/modules/indexeddb/IDBVersionChangeEvent.cpp File Source/modules/indexeddb/IDBVersionChangeEvent.cpp (right): https://codereview.chromium.org/386883008/diff/80001/Source/modules/indexeddb/IDBVersionChangeEvent.cpp#newcode64 Source/modules/indexeddb/IDBVersionChangeEvent.cpp:64: ASSERT_NOT_REACHED(); // Should have been validated by the bindings ...
6 years, 5 months ago (2014-07-16 22:48:36 UTC) #11
bashi
https://codereview.chromium.org/386883008/diff/80001/Source/modules/indexeddb/IDBVersionChangeEvent.cpp File Source/modules/indexeddb/IDBVersionChangeEvent.cpp (right): https://codereview.chromium.org/386883008/diff/80001/Source/modules/indexeddb/IDBVersionChangeEvent.cpp#newcode64 Source/modules/indexeddb/IDBVersionChangeEvent.cpp:64: ASSERT_NOT_REACHED(); // Should have been validated by the bindings ...
6 years, 5 months ago (2014-07-17 01:47:58 UTC) #12
cmumford
On 2014/07/17 01:47:58, bashi1 wrote: > https://codereview.chromium.org/386883008/diff/80001/Source/modules/indexeddb/IDBVersionChangeEvent.cpp > File Source/modules/indexeddb/IDBVersionChangeEvent.cpp (right): > > https://codereview.chromium.org/386883008/diff/80001/Source/modules/indexeddb/IDBVersionChangeEvent.cpp#newcode64 > ...
6 years, 5 months ago (2014-07-17 17:14:13 UTC) #13
cmumford
https://codereview.chromium.org/386883008/diff/80001/Source/modules/indexeddb/IDBVersionChangeEvent.cpp File Source/modules/indexeddb/IDBVersionChangeEvent.cpp (right): https://codereview.chromium.org/386883008/diff/80001/Source/modules/indexeddb/IDBVersionChangeEvent.cpp#newcode64 Source/modules/indexeddb/IDBVersionChangeEvent.cpp:64: ASSERT_NOT_REACHED(); // Should have been validated by the bindings ...
6 years, 5 months ago (2014-07-17 17:14:24 UTC) #14
jsbell
lgtm
6 years, 5 months ago (2014-07-17 17:50:39 UTC) #15
haraken
LGTM in terms of implementation.
6 years, 5 months ago (2014-07-17 23:23:13 UTC) #16
cmumford
bashi1, tasak: Any other changes you'd like to see in this CL?
6 years, 5 months ago (2014-07-18 18:21:19 UTC) #17
bashi
On 2014/07/18 18:21:19, cmumford wrote: > bashi1, tasak: Any other changes you'd like to see ...
6 years, 5 months ago (2014-07-19 01:27:57 UTC) #18
cmumford
On 2014/07/19 01:27:57, bashi1 wrote: > On 2014/07/18 18:21:19, cmumford wrote: > > bashi1, tasak: ...
6 years, 5 months ago (2014-07-19 14:48:39 UTC) #19
cmumford
The CQ bit was checked by cmumford@chromium.org
6 years, 5 months ago (2014-07-19 14:48:46 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cmumford@chromium.org/386883008/120001
6 years, 5 months ago (2014-07-19 14:49:15 UTC) #21
commit-bot: I haz the power
6 years, 5 months ago (2014-07-19 15:48:52 UTC) #22
Message was sent while issue was closed.
Change committed as 178517

Powered by Google App Engine
This is Rietveld 408576698