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

Issue 147248: DOM Storage: Add renderer-process IPC code. (Closed)

Created:
11 years, 6 months ago by jorlow
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, darin (slow to review), Ben Goodger (Google)
Visibility:
Public.

Description

The final CL for plumbing DOM Storage. Add webKitClient plumbing for getting/creating storage namespaces. Add a chromium implementation for WebStorageArea and WebStorageNamespace which communicates via IPC with the dom_storage_dispatcher_host in the browser process. Flesh out the StorageAreaProxy and StorageNamespaceProxy to use the aforementioned implementations. The WebStorageArea implementation includes decently aggressive caching optimizations. There's still a lot of work to do, though. BUG=4360 TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=21495

Patch Set 1 #

Total comments: 12

Patch Set 2 : '' #

Total comments: 21

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 22

Patch Set 7 : '' #

Patch Set 8 : '' #

Patch Set 9 : '' #

Patch Set 10 : '' #

Patch Set 11 : '' #

Total comments: 31

Patch Set 12 : '' #

Total comments: 2

Patch Set 13 : '' #

Patch Set 14 : '' #

Patch Set 15 : '' #

Patch Set 16 : '' #

Patch Set 17 : '' #

Patch Set 18 : '' #

Patch Set 19 : '' #

Patch Set 20 : '' #

Total comments: 6

Patch Set 21 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+656 lines, -5 lines) Patch
M chrome/browser/in_process_webkit/browser_webkitclient_impl.h View 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/in_process_webkit/browser_webkitclient_impl.cc View 2 3 4 5 6 7 8 9 10 11 12 1 chunk +19 lines, -0 lines 0 comments Download
M chrome/browser/renderer_host/render_sandbox_host_linux.cc View 14 15 16 17 3 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome.gyp View 2 3 4 5 6 7 8 9 10 11 12 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.h View 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/renderer/renderer_webkitclient_impl.cc View 2 3 4 5 6 7 8 9 10 11 12 3 chunks +17 lines, -0 lines 0 comments Download
A chrome/renderer/renderer_webstoragearea_impl.h View 4 5 6 7 8 9 1 chunk +76 lines, -0 lines 0 comments Download
A chrome/renderer/renderer_webstoragearea_impl.cc View 4 5 6 7 8 9 10 11 12 13 15 16 17 18 1 chunk +171 lines, -0 lines 0 comments Download
A chrome/renderer/renderer_webstoragenamespace_impl.h View 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +35 lines, -0 lines 0 comments Download
A chrome/renderer/renderer_webstoragenamespace_impl.cc View 4 5 6 7 8 9 1 chunk +65 lines, -0 lines 0 comments Download
M chrome/worker/worker_webkitclient_impl.h View 2 3 4 5 6 7 8 9 10 11 12 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/worker/worker_webkitclient_impl.cc View 2 3 4 5 6 7 8 9 10 11 12 1 chunk +13 lines, -0 lines 0 comments Download
M webkit/api/public/WebKitClient.h View 2 3 4 5 6 7 8 9 10 11 12 2 chunks +12 lines, -0 lines 0 comments Download
A webkit/api/src/StorageAreaProxy.h View 7 8 9 1 chunk +59 lines, -0 lines 0 comments Download
A webkit/api/src/StorageAreaProxy.cpp View 7 8 9 10 11 1 chunk +94 lines, -0 lines 0 comments Download
M webkit/api/src/StorageNamespaceProxy.h View 7 8 9 10 11 12 1 chunk +17 lines, -1 line 0 comments Download
M webkit/api/src/StorageNamespaceProxy.cpp View 7 8 9 10 11 12 1 chunk +33 lines, -4 lines 0 comments Download
M webkit/tools/test_shell/test_shell_webkit_init.h View 2 chunks +11 lines, -0 lines 0 comments Download
M webkit/tools/test_shell/test_worker/test_worker_main.cc View 1 chunk +11 lines, -0 lines 0 comments Download
M webkit/webkit.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 31 (0 generated)
jorlow
This is still VERY early, but I wanted to make sure my approach with the ...
11 years, 6 months ago (2009-06-26 23:08:45 UTC) #1
jam
the approach is definitely sound & consistent http://codereview.chromium.org/147248/diff/1/6 File chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc (right): http://codereview.chromium.org/147248/diff/1/6#newcode39 Line 39: bool ...
11 years, 6 months ago (2009-06-27 00:09:22 UTC) #2
jorlow
I implemented the renderer side of the plumbing and made all the changes you suggested. ...
11 years, 6 months ago (2009-06-27 02:48:12 UTC) #3
darin (slow to review)
http://codereview.chromium.org/147248/diff/1006/1010 File webkit/api/public/WebKit.h (right): http://codereview.chromium.org/147248/diff/1006/1010#newcode91 Line 91: WEBKIT_API WebStorage* webStorage(); instead of putting this here, ...
11 years, 6 months ago (2009-06-27 04:33:36 UTC) #4
jorlow
http://codereview.chromium.org/147248/diff/1006/1010 File webkit/api/public/WebKit.h (right): http://codereview.chromium.org/147248/diff/1006/1010#newcode91 Line 91: WEBKIT_API WebStorage* webStorage(); On 2009/06/27 04:33:36, darin wrote: ...
11 years, 6 months ago (2009-06-27 05:48:58 UTC) #5
darin (slow to review)
http://codereview.chromium.org/147248/diff/1006/1010 File webkit/api/public/WebKit.h (right): http://codereview.chromium.org/147248/diff/1006/1010#newcode91 Line 91: WEBKIT_API WebStorage* webStorage(); The one in the renderer ...
11 years, 5 months ago (2009-06-29 16:53:56 UTC) #6
jorlow
http://codereview.chromium.org/147248/diff/1006/1010 File webkit/api/public/WebKit.h (right): http://codereview.chromium.org/147248/diff/1006/1010#newcode91 Line 91: WEBKIT_API WebStorage* webStorage(); On 2009/06/29 16:53:56, darin wrote: ...
11 years, 5 months ago (2009-06-29 17:56:24 UTC) #7
michaeln
http://codereview.chromium.org/147248/diff/1006/1011 File chrome/browser/in_process_webkit/dom_storage_dispatcher_host.cc (right): http://codereview.chromium.org/147248/diff/1006/1011#newcode103 Line 103: return web_storage_; Do we need to distinquish between ...
11 years, 5 months ago (2009-07-06 19:35:34 UTC) #8
jorlow
There's a lot of work that remains to be done on this...I'll let you know ...
11 years, 5 months ago (2009-07-06 19:57:38 UTC) #9
jorlow
It's not quite working yet (stuck on a really weird bug) and there are a ...
11 years, 5 months ago (2009-07-10 05:33:13 UTC) #10
jorlow
It's working! Remaining work for this CL: * Put it behind a flag. Work before ...
11 years, 5 months ago (2009-07-11 02:08:14 UTC) #11
michaeln
More questions than comments at this time... http://codereview.chromium.org/147248/diff/4099/1139 File chrome/browser/in_process_webkit/browser_webkitclient_impl.h (right): http://codereview.chromium.org/147248/diff/4099/1139#newcode32 Line 32: virtual ...
11 years, 5 months ago (2009-07-14 01:31:19 UTC) #12
jorlow
Michael, I haven't looked at your comments yet. I uploaded the webkit side of this. ...
11 years, 5 months ago (2009-07-14 01:58:03 UTC) #13
michaeln1
I'll take a closer look tomorrow too... On Mon, Jul 13, 2009 at 6:58 PM, ...
11 years, 5 months ago (2009-07-14 02:07:53 UTC) #14
jorlow
I'll start making the changes tomorrow. http://codereview.chromium.org/147248/diff/4099/1139 File chrome/browser/in_process_webkit/browser_webkitclient_impl.h (right): http://codereview.chromium.org/147248/diff/4099/1139#newcode32 Line 32: virtual WebKit::WebStorageNamespace* ...
11 years, 5 months ago (2009-07-14 05:51:26 UTC) #15
jorlow
I think this is ready for review as well. This will go after the other ...
11 years, 5 months ago (2009-07-22 08:22:32 UTC) #16
darin (slow to review)
Looks great overall. Just some nits... http://codereview.chromium.org/147248/diff/4204/5065 File chrome/browser/in_process_webkit/browser_webkitclient_impl.cc (right): http://codereview.chromium.org/147248/diff/4204/5065#newcode86 Line 86: WebKit::WebStorageNamespace* BrowserWebKitClientImpl::createLocalStorageNamespace(const ...
11 years, 5 months ago (2009-07-22 16:51:36 UTC) #17
jam
please have a look at the lint warnings in the future, as they cover a ...
11 years, 5 months ago (2009-07-22 18:04:20 UTC) #18
jorlow
I think this is pretty much good to go. http://codereview.chromium.org/147248/diff/4204/5065 File chrome/browser/in_process_webkit/browser_webkitclient_impl.cc (right): http://codereview.chromium.org/147248/diff/4204/5065#newcode86 Line ...
11 years, 5 months ago (2009-07-23 03:19:26 UTC) #19
darin (slow to review)
LGTM http://codereview.chromium.org/147248/diff/4234/4241 File chrome/browser/in_process_webkit/browser_webkitclient_impl.cc (right): http://codereview.chromium.org/147248/diff/4234/4241#newcode87 Line 87: BrowserWebKitClientImpl::createLocalStorageNamespace( hmm... it is sad when the ...
11 years, 5 months ago (2009-07-23 05:42:24 UTC) #20
darin (slow to review)
http://codereview.chromium.org/147248/diff/4234/4241 File chrome/browser/in_process_webkit/browser_webkitclient_impl.cc (right): http://codereview.chromium.org/147248/diff/4234/4241#newcode87 Line 87: BrowserWebKitClientImpl::createLocalStorageNamespace( On 2009/07/23 05:42:24, darin wrote: > hmm... ...
11 years, 5 months ago (2009-07-23 05:43:29 UTC) #21
jam
lgtm On Wed, Jul 22, 2009 at 10:42 PM, <darin@chromium.org> wrote: > LGTM > > ...
11 years, 5 months ago (2009-07-23 05:52:23 UTC) #22
jorlow
Need one more review. Compare to patch set 12. Had to teach base how to ...
11 years, 5 months ago (2009-07-23 22:25:23 UTC) #23
darin (slow to review)
http://codereview.chromium.org/147248/diff/5293/6131 File base/hash_tables.h (right): http://codereview.chromium.org/147248/diff/5293/6131#newcode100 Line 100: std::size_t result = 0; std::tr1::hash<string16> doesn't work?
11 years, 5 months ago (2009-07-23 22:31:52 UTC) #24
jorlow
http://codereview.chromium.org/147248/diff/5293/6131 File base/hash_tables.h (right): http://codereview.chromium.org/147248/diff/5293/6131#newcode100 Line 100: std::size_t result = 0; On 2009/07/23 22:31:52, darin ...
11 years, 5 months ago (2009-07-23 22:51:16 UTC) #25
darin (slow to review)
http://codereview.chromium.org/147248/diff/5293/6131 File base/hash_tables.h (right): http://codereview.chromium.org/147248/diff/5293/6131#newcode100 Line 100: std::size_t result = 0; OK... I'm probably not ...
11 years, 5 months ago (2009-07-23 23:06:20 UTC) #26
jorlow
http://codereview.chromium.org/147248/diff/5293/6131 File base/hash_tables.h (right): http://codereview.chromium.org/147248/diff/5293/6131#newcode100 Line 100: std::size_t result = 0; On 2009/07/23 23:06:20, darin ...
11 years, 5 months ago (2009-07-23 23:15:33 UTC) #27
Mark Mentovai
http://codereview.chromium.org/147248/diff/5293/6131 File base/hash_tables.h (right): http://codereview.chromium.org/147248/diff/5293/6131#newcode100 Line 100: std::size_t result = 0; On 2009/07/23 23:15:33, Jeremy ...
11 years, 5 months ago (2009-07-23 23:28:36 UTC) #28
jorlow
http://codereview.chromium.org/147248/diff/5293/6131 File base/hash_tables.h (right): http://codereview.chromium.org/147248/diff/5293/6131#newcode100 Line 100: std::size_t result = 0; On 2009/07/23 23:28:37, Mark ...
11 years, 5 months ago (2009-07-23 23:35:16 UTC) #29
jorlow
Uploaded a new version without base/hash_tables.h. Any other issues?
11 years, 5 months ago (2009-07-23 23:59:48 UTC) #30
darin (slow to review)
11 years, 5 months ago (2009-07-24 00:22:34 UTC) #31
LGTM

Powered by Google App Engine
This is Rietveld 408576698