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

Issue 9718029: DomStorage commit task sequencing. (Closed)

Created:
8 years, 9 months ago by michaeln
Modified:
8 years, 9 months ago
Reviewers:
benm (inactive), jsbell
CC:
chromium-reviews, joi+watch-content_chromium.org, jam, darin-cc_chromium.org, jsbell
Visibility:
Public.

Description

DomStorage commit task sequencing. Use two workerpool task sequences (primary vs commit) instead of one to avoid DomStorage access queuing up behind commits. * Initialization, shutdown, and administrative tasks are performed as shutdown-blocking primary sequence tasks. * Methods that return values to the java-scriptable interface are performed as non-shutdown-blocking primary sequence tasks. * Internal tasks related to committing changes to disk are performed as shutdown-blocking commit sequence tasks. BUG=106763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=127981

Patch Set 1 #

Patch Set 2 : #

Total comments: 15

Patch Set 3 : #

Patch Set 4 : #

Patch Set 5 : #

Total comments: 6

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+482 lines, -194 lines) Patch
M content/browser/dom_storage/dom_storage_context_impl_new.cc View 1 2 3 4 5 4 chunks +19 lines, -9 lines 0 comments Download
M content/browser/dom_storage/dom_storage_message_filter_new.cc View 1 2 3 4 5 2 chunks +5 lines, -2 lines 0 comments Download
M webkit/dom_storage/dom_storage_area.h View 1 2 3 4 5 6 2 chunks +28 lines, -7 lines 0 comments Download
M webkit/dom_storage/dom_storage_area.cc View 1 2 3 4 5 6 7 6 chunks +116 lines, -51 lines 0 comments Download
M webkit/dom_storage/dom_storage_area_unittest.cc View 1 2 3 4 5 6 7 7 chunks +175 lines, -27 lines 0 comments Download
M webkit/dom_storage/dom_storage_context.h View 1 2 3 4 5 6 7 2 chunks +6 lines, -1 line 0 comments Download
M webkit/dom_storage/dom_storage_context.cc View 1 2 3 4 5 6 7 5 chunks +17 lines, -2 lines 0 comments Download
M webkit/dom_storage/dom_storage_database.h View 1 2 3 4 5 4 chunks +6 lines, -12 lines 0 comments Download
M webkit/dom_storage/dom_storage_database.cc View 1 2 3 4 5 1 chunk +4 lines, -0 lines 0 comments Download
M webkit/dom_storage/dom_storage_database_unittest.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/dom_storage/dom_storage_namespace.h View 1 2 3 4 5 1 chunk +3 lines, -0 lines 0 comments Download
M webkit/dom_storage/dom_storage_namespace.cc View 1 2 3 4 5 1 chunk +11 lines, -0 lines 0 comments Download
M webkit/dom_storage/dom_storage_task_runner.h View 1 2 3 4 5 6 7 1 chunk +55 lines, -38 lines 0 comments Download
M webkit/dom_storage/dom_storage_task_runner.cc View 1 2 3 4 5 6 7 3 chunks +37 lines, -41 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
michaeln
hi ben, not sure if you're still around, but if you are would be great ...
8 years, 9 months ago (2012-03-19 00:49:13 UTC) #1
benm (inactive)
Awesome - this looks pretty good to me! Just a few nits/suggestions. Cheers, Ben http://codereview.chromium.org/9718029/diff/2004/webkit/dom_storage/dom_storage_area.cc ...
8 years, 9 months ago (2012-03-19 14:22:53 UTC) #2
michaeln
no new shapshot yet http://codereview.chromium.org/9718029/diff/2004/webkit/dom_storage/dom_storage_area.cc File webkit/dom_storage/dom_storage_area.cc (right): http://codereview.chromium.org/9718029/diff/2004/webkit/dom_storage/dom_storage_area.cc#newcode165 webkit/dom_storage/dom_storage_area.cc:165: DCHECK(is_shutdown_); On 2012/03/19 14:22:53, benm ...
8 years, 9 months ago (2012-03-19 16:04:42 UTC) #3
michaeln
i'll clean up the new method names and such and upload a new snapshot later ...
8 years, 9 months ago (2012-03-19 16:26:51 UTC) #4
benm (inactive)
http://codereview.chromium.org/9718029/diff/2004/webkit/dom_storage/dom_storage_area.cc File webkit/dom_storage/dom_storage_area.cc (right): http://codereview.chromium.org/9718029/diff/2004/webkit/dom_storage/dom_storage_area.cc#newcode164 webkit/dom_storage/dom_storage_area.cc:164: DomStorageArea::CommitBatch* DomStorageArea::GetCommitBatch() { sg, or maybe Schedule instead of ...
8 years, 9 months ago (2012-03-19 17:08:45 UTC) #5
michaeln
new snapshot
8 years, 9 months ago (2012-03-19 20:35:32 UTC) #6
michaeln
I have to update the 'area' unittests but otherwise i think this CL is about ...
8 years, 9 months ago (2012-03-20 03:24:03 UTC) #7
benm (inactive)
A few suggestions for comments and with the edits you mentioned in the last message ...
8 years, 9 months ago (2012-03-20 13:39:16 UTC) #8
michaeln
@jsbell, could you take a look at the unit tests?
8 years, 9 months ago (2012-03-20 23:28:10 UTC) #9
jsbell
8 years, 9 months ago (2012-03-21 00:23:43 UTC) #10
lgtm

lgtm

Powered by Google App Engine
This is Rietveld 408576698