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

Issue 9146025: Framing for a DOMStorage backend that does not depend on in-process-webkit. (Closed)

Created:
8 years, 11 months ago by michaeln
Modified:
8 years, 10 months ago
CC:
chromium-reviews, darin-cc_chromium.org, marja
Visibility:
Public.

Description

Framing for a DomStorage backend that does not depend on in-process-webkit. Only partial unittests coverage in this CL, more to come. These classes aren't used yet. Classes intended to be used by an embedder are DomStorageContext,DomStorageHost, and DomStorageSession. The other classes are for internal consumption. In general terms, the DomStorage object relationships are... * Contexts (per-profile) own Namespaces which own Areas which share Maps. * Hosts(per-renderer) refer to Namespaces and Areas open in it's renderer. * Sessions (per-tab) cause the creation and deletion of session Namespaces. Session Namespaces are cloned by initially making a shallow copy of all contained Areas, the shallow copies refer to the same refcounted Map, and does a deep copy-on-write if needed. BUG=106763 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=120687

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 5

Patch Set 5 : '' #

Total comments: 15

Patch Set 6 : '' #

Patch Set 7 : '' #

Total comments: 23

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Patch Set 12 : '' #

Total comments: 9

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+1099 lines, -717 lines) Patch
A webkit/dom_storage/OWNERS View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +1 line, -0 lines 0 comments Download
A + webkit/dom_storage/dom_storage_area.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +41 lines, -51 lines 0 comments Download
A + webkit/dom_storage/dom_storage_area.cc View 1 2 3 4 5 6 7 1 chunk +43 lines, -56 lines 0 comments Download
A webkit/dom_storage/dom_storage_area_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +56 lines, -0 lines 0 comments Download
A + webkit/dom_storage/dom_storage_context.h View 1 2 3 4 5 6 7 8 1 chunk +109 lines, -146 lines 0 comments Download
A + webkit/dom_storage/dom_storage_context.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +77 lines, -268 lines 0 comments Download
A webkit/dom_storage/dom_storage_host.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +68 lines, -0 lines 0 comments Download
A webkit/dom_storage/dom_storage_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 1 chunk +124 lines, -0 lines 0 comments Download
A webkit/dom_storage/dom_storage_map.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
A webkit/dom_storage/dom_storage_map.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +68 lines, -0 lines 0 comments Download
A webkit/dom_storage/dom_storage_map_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +63 lines, -0 lines 0 comments Download
A + webkit/dom_storage/dom_storage_namespace.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +57 lines, -61 lines 0 comments Download
A + webkit/dom_storage/dom_storage_namespace.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +65 lines, -86 lines 0 comments Download
A + webkit/dom_storage/dom_storage_session.h View 1 2 3 4 5 6 7 1 chunk +24 lines, -29 lines 0 comments Download
A + webkit/dom_storage/dom_storage_session.cc View 1 2 3 4 5 1 chunk +34 lines, -19 lines 0 comments Download
A webkit/dom_storage/dom_storage_task_runner.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +70 lines, -0 lines 1 comment Download
A webkit/dom_storage/dom_storage_task_runner.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +71 lines, -0 lines 0 comments Download
A webkit/dom_storage/dom_storage_types.h View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
A webkit/dom_storage/webkit_dom_storage.gypi View 1 2 3 4 5 6 7 1 chunk +43 lines, -0 lines 0 comments Download
M webkit/support/webkit_support.gyp View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +2 lines, -1 line 0 comments Download
M webkit/tools/test_shell/test_shell.gypi View 1 2 3 4 5 6 7 8 9 10 11 2 chunks +3 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (0 generated)
michaeln
ptal
8 years, 11 months ago (2012-01-24 00:43:12 UTC) #1
marja
http://codereview.chromium.org/9146025/diff/5019/webkit/dom_storage/dom_storage_session.h File webkit/dom_storage/dom_storage_session.h (right): http://codereview.chromium.org/9146025/diff/5019/webkit/dom_storage/dom_storage_session.h#newcode16 webkit/dom_storage/dom_storage_session.h:16: class DOMStorageSession DOMSessionStorage instead of DOMStorageSession?
8 years, 11 months ago (2012-01-24 10:00:55 UTC) #2
michaeln
> DOMSessionStorage instead of DOMStorageSession? I had it as "DOMStorage<Foo>" for consistency with other class ...
8 years, 11 months ago (2012-01-24 17:28:04 UTC) #3
jsbell
Overall lgtm, for what that's worth. Watching this evolve is helpful to see the Chromium ...
8 years, 11 months ago (2012-01-24 19:37:25 UTC) #4
benm (inactive)
http://codereview.chromium.org/9146025/diff/5019/webkit/dom_storage/dom_storage_area.h File webkit/dom_storage/dom_storage_area.h (right): http://codereview.chromium.org/9146025/diff/5019/webkit/dom_storage/dom_storage_area.h#newcode25 webkit/dom_storage/dom_storage_area.h:25: const FilePath& backing_file); I was thinking this would be ...
8 years, 11 months ago (2012-01-25 18:46:59 UTC) #5
michaeln
Hi ben, a new snapshot... * switched to DomStorage<<>> for class names * added DomStorageTaskRunner ...
8 years, 10 months ago (2012-01-31 03:25:04 UTC) #6
benm (inactive)
looks good overall, just a few nits really. I'm happy to merge your version of ...
8 years, 10 months ago (2012-01-31 18:03:37 UTC) #7
michaeln
no new snapshot yet, just responding to comments http://codereview.chromium.org/9146025/diff/9001/webkit/dom_storage/dom_storage_area.h File webkit/dom_storage/dom_storage_area.h (right): http://codereview.chromium.org/9146025/diff/9001/webkit/dom_storage/dom_storage_area.h#newcode35 webkit/dom_storage/dom_storage_area.h:35: int ...
8 years, 10 months ago (2012-01-31 21:17:45 UTC) #8
michaeln
new snapshot I have to stop adding code and start adding tests, these classes are ...
8 years, 10 months ago (2012-02-02 02:41:39 UTC) #9
benm (inactive)
Looking good overall, but I think it'd be nice to try and split this into ...
8 years, 10 months ago (2012-02-02 16:23:19 UTC) #10
michaeln
thnx for looking... i'll keep this CL to show how things hang together and carve ...
8 years, 10 months ago (2012-02-03 00:33:42 UTC) #11
michaeln
Refactored the TaskRunner as described ealier. Added unittests for the Map and Area classes. Fixed ...
8 years, 10 months ago (2012-02-03 05:33:49 UTC) #12
benm (inactive)
On 2012/02/03 05:33:49, michaeln wrote: > Refactored the TaskRunner as described ealier. > Added unittests ...
8 years, 10 months ago (2012-02-03 16:03:31 UTC) #13
benm (inactive)
Just a few nits but overall LGTM! http://codereview.chromium.org/9146025/diff/21036/webkit/dom_storage/dom_storage_area_unittest.cc File webkit/dom_storage/dom_storage_area_unittest.cc (right): http://codereview.chromium.org/9146025/diff/21036/webkit/dom_storage/dom_storage_area_unittest.cc#newcode28 webkit/dom_storage/dom_storage_area_unittest.cc:28: EXPECT_EQ(0, area->Length()); ...
8 years, 10 months ago (2012-02-03 16:03:59 UTC) #14
michaeln
thnx for looking http://codereview.chromium.org/9146025/diff/21036/webkit/dom_storage/dom_storage_area_unittest.cc File webkit/dom_storage/dom_storage_area_unittest.cc (right): http://codereview.chromium.org/9146025/diff/21036/webkit/dom_storage/dom_storage_area_unittest.cc#newcode28 webkit/dom_storage/dom_storage_area_unittest.cc:28: EXPECT_EQ(0, area->Length()); On 2012/02/03 16:04:00, benm ...
8 years, 10 months ago (2012-02-03 20:15:57 UTC) #15
michaeln
@tony or @darin can i get an owners LGTM for touching webkit_support.gyp and test_shell.gypi?
8 years, 10 months ago (2012-02-04 01:46:52 UTC) #16
michaeln
see snapshot 14 for green test runs
8 years, 10 months ago (2012-02-04 02:31:50 UTC) #17
darin (slow to review)
8 years, 10 months ago (2012-02-04 05:26:07 UTC) #18
LGTM for .gypi changes

http://codereview.chromium.org/9146025/diff/21047/webkit/dom_storage/dom_stor...
File webkit/dom_storage/dom_storage_task_runner.h (right):

http://codereview.chromium.org/9146025/diff/21047/webkit/dom_storage/dom_stor...
webkit/dom_storage/dom_storage_task_runner.h:18: // Tasks must run serially with
respect to one another, but may
there's actually work underway by akalin to create *TaskRunner classes:  one
that will replace MessageLoopProxy and one that will wrap SequencedWorkerPool!

Powered by Google App Engine
This is Rietveld 408576698