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

Issue 1745603002: Switch LevelDBWrapper::GetAll to use the new Mojo sync IPC mechanism. (Closed)

Created:
4 years, 9 months ago by jam
Modified:
4 years, 9 months ago
Reviewers:
michaeln, dcheng
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, jam, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Switch LevelDBWrapper::GetAll to use the new Mojo sync IPC mechanism. Also create LocalStorageCachedArea to mirror the (non-mojo) DOMStorageCachedArea, since there could be several LocalStorageArea objects in a renderer for the same origin and we want just one cache. LocalStorageCachedAreas is a container for all the live LocalStorageCachedArea objects in the renderer. BUG=586194 Committed: https://crrev.com/5af3c81e40aebf43387314e2bc7f18aca80eb178 Cr-Commit-Position: refs/heads/master@{#378818}

Patch Set 1 #

Total comments: 2

Patch Set 2 : #

Patch Set 3 : merge #

Total comments: 21

Patch Set 4 : review comment #

Total comments: 2

Patch Set 5 : review comments #

Total comments: 4

Patch Set 6 : review comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+326 lines, -210 lines) Patch
M content/browser/dom_storage/dom_storage_context_wrapper.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/dom_storage/dom_storage_context_wrapper.cc View 1 3 chunks +2 lines, -3 lines 0 comments Download
D content/browser/level_db_wrapper_impl.h View 1 2 1 chunk +0 lines, -59 lines 0 comments Download
D content/browser/level_db_wrapper_impl.cc View 1 1 chunk +0 lines, -57 lines 0 comments Download
A + content/browser/leveldb_wrapper_impl.h View 1 2 4 chunks +8 lines, -7 lines 0 comments Download
A + content/browser/leveldb_wrapper_impl.cc View 1 2 3 4 3 chunks +8 lines, -7 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
M content/browser/storage_partition_impl.cc View 1 1 chunk +1 line, -3 lines 0 comments Download
M content/common/leveldb_wrapper.mojom View 1 2 3 4 5 2 chunks +17 lines, -10 lines 0 comments Download
M content/common/storage_partition_service.mojom View 1 1 chunk +1 line, -2 lines 0 comments Download
M content/content_browser.gypi View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M content/content_renderer.gypi View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/renderer/dom_storage/DEPS View 1 1 chunk +2 lines, -0 lines 0 comments Download
M content/renderer/dom_storage/local_storage_area.h View 1 2 2 chunks +10 lines, -26 lines 0 comments Download
M content/renderer/dom_storage/local_storage_area.cc View 1 2 3 4 2 chunks +11 lines, -23 lines 0 comments Download
A content/renderer/dom_storage/local_storage_cached_area.h View 1 2 3 1 chunk +73 lines, -0 lines 0 comments Download
A content/renderer/dom_storage/local_storage_cached_area.cc View 1 1 chunk +85 lines, -0 lines 0 comments Download
A content/renderer/dom_storage/local_storage_cached_areas.h View 1 1 chunk +46 lines, -0 lines 0 comments Download
A content/renderer/dom_storage/local_storage_cached_areas.cc View 1 1 chunk +36 lines, -0 lines 0 comments Download
M content/renderer/dom_storage/local_storage_namespace.h View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M content/renderer/dom_storage/local_storage_namespace.cc View 1 3 chunks +6 lines, -3 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M content/renderer/renderer_blink_platform_impl.cc View 1 2 2 chunks +7 lines, -2 lines 0 comments Download

Messages

Total messages: 29 (11 generated)
jam
4 years, 9 months ago (2016-02-26 21:20:02 UTC) #2
michaeln
https://codereview.chromium.org/1745603002/diff/1/content/renderer/dom_storage/local_storage_area.h File content/renderer/dom_storage/local_storage_area.h (right): https://codereview.chromium.org/1745603002/diff/1/content/renderer/dom_storage/local_storage_area.h#newcode21 content/renderer/dom_storage/local_storage_area.h:21: class LocalStorageArea : public blink::WebStorageArea, The [Sycn] attribute looks ...
4 years, 9 months ago (2016-02-26 22:21:44 UTC) #3
michaeln
also, about DOMStorageCachedArea::Prime() and ignore_all_mutations_ = true, we do need that, the comment explains why. ...
4 years, 9 months ago (2016-02-26 22:31:30 UTC) #4
jam
On 2016/02/26 22:31:30, michaeln wrote: > also, about DOMStorageCachedArea::Prime() and ignore_all_mutations_ = true, we > ...
4 years, 9 months ago (2016-02-29 23:47:47 UTC) #5
michaeln
nice, i have some questions/comments about modularization and a couple naming nits https://codereview.chromium.org/1745603002/diff/40001/content/browser/dom_storage/dom_storage_context_wrapper.h File content/browser/dom_storage/dom_storage_context_wrapper.h ...
4 years, 9 months ago (2016-03-01 01:38:48 UTC) #7
jam
https://codereview.chromium.org/1745603002/diff/40001/content/browser/dom_storage/dom_storage_context_wrapper.h File content/browser/dom_storage/dom_storage_context_wrapper.h (right): https://codereview.chromium.org/1745603002/diff/40001/content/browser/dom_storage/dom_storage_context_wrapper.h#newcode82 content/browser/dom_storage/dom_storage_context_wrapper.h:82: std::map<std::string, scoped_ptr<LevelDBWrapperImpl>> level_db_wrappers_; On 2016/03/01 01:38:47, michaeln wrote: > ...
4 years, 9 months ago (2016-03-01 06:50:54 UTC) #8
michaeln
lgtm https://codereview.chromium.org/1745603002/diff/40001/content/browser/dom_storage/dom_storage_context_wrapper.h File content/browser/dom_storage/dom_storage_context_wrapper.h (right): https://codereview.chromium.org/1745603002/diff/40001/content/browser/dom_storage/dom_storage_context_wrapper.h#newcode82 content/browser/dom_storage/dom_storage_context_wrapper.h:82: std::map<std::string, scoped_ptr<LevelDBWrapperImpl>> level_db_wrappers_; On 2016/03/01 06:50:53, jam wrote: ...
4 years, 9 months ago (2016-03-01 21:38:44 UTC) #9
michaeln
https://codereview.chromium.org/1745603002/diff/60001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (right): https://codereview.chromium.org/1745603002/diff/60001/content/browser/leveldb_wrapper_impl.cc#newcode23 content/browser/leveldb_wrapper_impl.cc:23: no_bindings_callback_.Run(); also, this call looks fishy, looks like we ...
4 years, 9 months ago (2016-03-01 22:26:14 UTC) #10
jam
https://codereview.chromium.org/1745603002/diff/40001/content/browser/dom_storage/dom_storage_context_wrapper.h File content/browser/dom_storage/dom_storage_context_wrapper.h (right): https://codereview.chromium.org/1745603002/diff/40001/content/browser/dom_storage/dom_storage_context_wrapper.h#newcode82 content/browser/dom_storage/dom_storage_context_wrapper.h:82: std::map<std::string, scoped_ptr<LevelDBWrapperImpl>> level_db_wrappers_; On 2016/03/01 21:38:44, michaeln wrote: > ...
4 years, 9 months ago (2016-03-02 06:21:20 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1745603002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1745603002/80001
4 years, 9 months ago (2016-03-02 16:51:10 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/152488)
4 years, 9 months ago (2016-03-02 17:01:55 UTC) #16
jam
+dcheng for mojom changes
4 years, 9 months ago (2016-03-02 17:05:32 UTC) #18
dcheng
https://codereview.chromium.org/1745603002/diff/80001/content/common/leveldb_wrapper.mojom File content/common/leveldb_wrapper.mojom (right): https://codereview.chromium.org/1745603002/diff/80001/content/common/leveldb_wrapper.mojom#newcode10 content/common/leveldb_wrapper.mojom:10: // The reason this is a parameter to DeleteAll ...
4 years, 9 months ago (2016-03-02 18:40:23 UTC) #19
jam
https://codereview.chromium.org/1745603002/diff/80001/content/common/leveldb_wrapper.mojom File content/common/leveldb_wrapper.mojom (right): https://codereview.chromium.org/1745603002/diff/80001/content/common/leveldb_wrapper.mojom#newcode10 content/common/leveldb_wrapper.mojom:10: // The reason this is a parameter to DeleteAll ...
4 years, 9 months ago (2016-03-02 19:08:20 UTC) #20
dcheng
lgtm
4 years, 9 months ago (2016-03-02 19:39:20 UTC) #21
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1745603002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1745603002/100001
4 years, 9 months ago (2016-03-02 20:00:03 UTC) #24
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 9 months ago (2016-03-02 20:35:08 UTC) #26
commit-bot: I haz the power
4 years, 9 months ago (2016-03-02 20:36:09 UTC) #28
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/5af3c81e40aebf43387314e2bc7f18aca80eb178
Cr-Commit-Position: refs/heads/master@{#378818}

Powered by Google App Engine
This is Rietveld 408576698