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

Issue 2870803002: Rename IDBRequest::On* callbacks to IDBRequest::Enqueue*. (Closed)

Created:
3 years, 7 months ago by pwnall
Modified:
3 years, 7 months ago
Reviewers:
jsbell, cmumford, dmurph
CC:
chromium-reviews, haraken, blink-reviews, jsbell+idb_chromium.org, cmumford
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Rename IDBRequest::On* callbacks to IDBRequest::Enqueue*. The current OnSuccess() / OnError() naming scheme is a bit misleading, because it suggests that the success and error events are dispatched to script synchronously. The events are actually queued up, via ExecutionContext::EnqueueEvent(), in order to support having the application be suspended in Dev Tools. This CL fixes up the naming scheme and de-virtualizes some IDBRequest methods that are not overridden by its only subclass, IDBOpenDBRequest. This leads the way to more complex changes in event processing needed by the referenced bug. BUG=713409 Review-Url: https://codereview.chromium.org/2870803002 Cr-Commit-Position: refs/heads/master@{#470844} Committed: https://chromium.googlesource.com/chromium/src/+/55ad6749e01eb6bb63b6fb2f64655a82cf4e7d2c

Patch Set 1 #

Patch Set 2 : De-virtualized one more callback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -94 lines) Patch
M third_party/WebKit/Source/modules/indexeddb/IDBFactory.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.h View 1 chunk +11 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.cpp View 5 chunks +12 lines, -10 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBRequest.h View 1 2 chunks +26 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp View 9 chunks +24 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/IDBRequestTest.cpp View 2 chunks +13 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/modules/indexeddb/WebIDBCallbacksImpl.cpp View 12 chunks +15 lines, -14 lines 0 comments Download

Messages

Total messages: 43 (23 generated)
pwnall
dmurph: PTAL? What do you think of the new names? jsbell: I came up with ...
3 years, 7 months ago (2017-05-09 01:33:32 UTC) #4
jsbell
On 2017/05/09 01:33:32, pwnall wrote: > jsbell: I came up with EnqueueResponse instead of EnqueueResult ...
3 years, 7 months ago (2017-05-09 16:27:41 UTC) #9
dmurph
lgtm
3 years, 7 months ago (2017-05-09 20:18:43 UTC) #10
cmumford
lgtm
3 years, 7 months ago (2017-05-09 22:19:50 UTC) #11
pwnall
On 2017/05/09 22:19:50, cmumford wrote: > lgtm jsbell, dmurph, cmumford: Thank you very much for ...
3 years, 7 months ago (2017-05-09 22:43:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870803002/20001
3 years, 7 months ago (2017-05-09 22:44:51 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 00:47:26 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870803002/20001
3 years, 7 months ago (2017-05-10 01:57:49 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_TIMED_OUT, build has not started yet; ...
3 years, 7 months ago (2017-05-10 04:00:34 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870803002/20001
3 years, 7 months ago (2017-05-10 08:53:49 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/449768)
3 years, 7 months ago (2017-05-10 11:32:48 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870803002/20001
3 years, 7 months ago (2017-05-10 15:45:09 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450292)
3 years, 7 months ago (2017-05-10 17:53:54 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870803002/20001
3 years, 7 months ago (2017-05-10 20:34:50 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/450811)
3 years, 7 months ago (2017-05-10 22:50:40 UTC) #32
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870803002/20001
3 years, 7 months ago (2017-05-10 23:32:08 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870803002/20001
3 years, 7 months ago (2017-05-10 23:34:43 UTC) #36
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/367804)
3 years, 7 months ago (2017-05-11 02:27:49 UTC) #38
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2870803002/20001
3 years, 7 months ago (2017-05-11 04:22:13 UTC) #40
commit-bot: I haz the power
3 years, 7 months ago (2017-05-11 06:34:16 UTC) #43
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/55ad6749e01eb6bb63b6fb2f6465...

Powered by Google App Engine
This is Rietveld 408576698