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

Issue 686153003: Replace IDBPendingTransactionMonitor with end-of-recursion-scope tasks (Closed)

Created:
6 years, 1 month ago by jsbell
Modified:
6 years, 1 month ago
Reviewers:
haraken, tasak, adamk
CC:
blink-reviews, blink-reviews-bindings_chromium.org, jsbell+idb_chromium.org, arv+blink, cmumford, dgrogan
Project:
blink
Visibility:
Public.

Description

Replace IDBPendingTransactionMonitor with end-of-recursion-scope tasks V8PerIsolateData cannot own IDBPendingTransactionMonitor, because IDBPendingTransactionMonitor is defined in modules/indexeddb and V8PerIsolateData is defined in bindings/core. Replace the monitor entirely by having IDBTransactions register tasks to be run once the scopes are unwound. BUG=358074 R=haraken,tasak,adamk Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=185137

Patch Set 1 #

Total comments: 4

Patch Set 2 : Review feedback #

Total comments: 4

Patch Set 3 : Add explicit #

Unified diffs Side-by-side diffs Delta from patch set Stats (+59 lines, -123 lines) Patch
M Source/bindings/core/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M Source/bindings/core/v8/V8PerIsolateData.h View 1 4 chunks +14 lines, -3 lines 0 comments Download
M Source/bindings/core/v8/V8PerIsolateData.cpp View 1 2 chunks +17 lines, -5 lines 0 comments Download
M Source/bindings/core/v8/V8RecursionScope.cpp View 1 chunk +1 line, -0 lines 0 comments Download
M Source/bindings/modules/v8/ModuleBindingsInitializer.cpp View 2 chunks +0 lines, -4 lines 0 comments Download
D Source/modules/indexeddb/IDBPendingTransactionMonitor.h View 1 chunk +0 lines, -55 lines 0 comments Download
D Source/modules/indexeddb/IDBPendingTransactionMonitor.cpp View 1 chunk +0 lines, -50 lines 0 comments Download
M Source/modules/indexeddb/IDBTransaction.cpp View 1 2 2 chunks +25 lines, -1 line 0 comments Download
M Source/modules/indexeddb/IDBTransactionTest.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/indexeddb/InspectorIndexedDBAgent.cpp View 1 chunk +1 line, -1 line 0 comments Download
M Source/modules/modules.gypi View 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 12 (1 generated)
jsbell
Since ModuleProxy::didLeaveScriptContextForRecursionScope() is a no-op with this change, we could remove that and the registration ...
6 years, 1 month ago (2014-11-10 20:04:20 UTC) #1
adamk
lgtm I love this approach. Still a little squeamish about adding a general notion of ...
6 years, 1 month ago (2014-11-10 20:29:22 UTC) #2
jsbell
On 2014/11/10 20:29:22, adamk wrote: > Do you think it's too heavy-handed to add a ...
6 years, 1 month ago (2014-11-10 20:51:54 UTC) #3
adamk
I like your proposed comment text a lot, please add! https://codereview.chromium.org/686153003/diff/1/Source/bindings/core/v8/V8PerIsolateData.cpp File Source/bindings/core/v8/V8PerIsolateData.cpp (right): https://codereview.chromium.org/686153003/diff/1/Source/bindings/core/v8/V8PerIsolateData.cpp#newcode261 ...
6 years, 1 month ago (2014-11-10 20:57:34 UTC) #4
jsbell
On 2014/11/10 20:57:34, adamk wrote: > I like your proposed comment text a lot, please ...
6 years, 1 month ago (2014-11-10 21:22:42 UTC) #5
adamk
still lgtm tasak should take a look and see what he thinks of this approach, ...
6 years, 1 month ago (2014-11-10 21:54:12 UTC) #6
haraken
LGTM, this looks nicer! https://codereview.chromium.org/686153003/diff/20001/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp File Source/bindings/modules/v8/ModuleBindingsInitializer.cpp (right): https://codereview.chromium.org/686153003/diff/20001/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp#newcode22 Source/bindings/modules/v8/ModuleBindingsInitializer.cpp:22: void ModuleBindingsInitializer::init() Can we probably ...
6 years, 1 month ago (2014-11-11 01:09:15 UTC) #7
tasak
lgtm
6 years, 1 month ago (2014-11-11 02:11:53 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/686153003/40001
6 years, 1 month ago (2014-11-11 17:38:20 UTC) #10
jsbell
https://codereview.chromium.org/686153003/diff/20001/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp File Source/bindings/modules/v8/ModuleBindingsInitializer.cpp (right): https://codereview.chromium.org/686153003/diff/20001/Source/bindings/modules/v8/ModuleBindingsInitializer.cpp#newcode22 Source/bindings/modules/v8/ModuleBindingsInitializer.cpp:22: void ModuleBindingsInitializer::init() On 2014/11/11 01:09:15, haraken wrote: > > ...
6 years, 1 month ago (2014-11-11 17:38:26 UTC) #11
commit-bot: I haz the power
6 years, 1 month ago (2014-11-11 18:43:51 UTC) #12
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as 185137

Powered by Google App Engine
This is Rietveld 408576698