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

Issue 3165026: [IndexedDB] Add transaction coordinator. (Closed)

Created:
10 years, 4 months ago by andreip3000
Modified:
9 years, 6 months ago
Reviewers:
bulach, jorlow
CC:
chromium-reviews, brettw-cc_chromium.org, darin-cc_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Add transaction coordinator. Allow idle transactions to be aborted when their parent JS context finishes executing. This change depends on the following WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=44101 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=56862

Patch Set 1 #

Total comments: 24

Patch Set 2 : Fix Jeremy's comments #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+312 lines, -4 lines) Patch
M chrome/browser/in_process_webkit/indexed_db_callbacks.h View 1 2 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/in_process_webkit/indexed_db_dispatcher_host.h View 1 6 chunks +23 lines, -0 lines 0 comments Download
M chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc View 1 13 chunks +91 lines, -1 line 1 comment Download
M chrome/chrome_renderer.gypi View 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 4 chunks +21 lines, -0 lines 1 comment Download
M chrome/renderer/indexed_db_dispatcher.h View 1 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/renderer/indexed_db_dispatcher.cc View 1 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webidbdatabase_impl.h View 2 chunks +4 lines, -1 line 0 comments Download
M chrome/renderer/renderer_webidbdatabase_impl.cc View 1 2 chunks +17 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webidbfactory_impl.h View 1 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webidbfactory_impl.cc View 1 chunk +10 lines, -0 lines 0 comments Download
A chrome/renderer/renderer_webidbtransaction_impl.h View 1 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/renderer/renderer_webidbtransaction_impl.cc View 1 1 chunk +60 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
jorlow
http://codereview.chromium.org/3165026/diff/1/2 File chrome/browser/in_process_webkit/indexed_db_callbacks.h (right): http://codereview.chromium.org/3165026/diff/1/2#newcode141 chrome/browser/in_process_webkit/indexed_db_callbacks.h:141: : dispatcher_host_(dispatcher_host), transaction_id_(transaction_id) { } } on new line ...
10 years, 4 months ago (2010-08-17 14:36:04 UTC) #1
andreip3000
Thanks Jeremy, all comments addressed. Please have another look.
10 years, 4 months ago (2010-08-19 12:58:41 UTC) #2
jorlow
10 years, 4 months ago (2010-08-19 13:05:34 UTC) #3
LGTM

http://codereview.chromium.org/3165026/diff/13001/14002
File chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc (right):

http://codereview.chromium.org/3165026/diff/13001/14002#newcode635
chrome/browser/in_process_webkit/indexed_db_dispatcher_host.cc:635:
IndexedDBDispatcherHost::TransactionDispatcherHost::
I've been told to do the following in such cases:

IndexedDBDispatcherHost::
TransactionDispatcherHost::~TransactionDispatcherHost() {
}

http://codereview.chromium.org/3165026/diff/13001/14005
File chrome/common/render_messages_internal.h (right):

http://codereview.chromium.org/3165026/diff/13001/14005#newcode2284
chrome/common/render_messages_internal.h:2284: // TODO: make this message async.
Caps M.  Maybe add a few more details since we already thought about how best to
do this and it might be a while before we bother to do it.

Powered by Google App Engine
This is Rietveld 408576698