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

Issue 1837883003: Some fleshing out the mojo based localstorage implementation. (Closed)

Created:
4 years, 8 months ago by michaeln
Modified:
4 years, 7 months ago
Reviewers:
Elliot Glaysher, jam, 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

Some fleshing out the mojo based localstorage implementation. Data is not yet stored on disk, but its functional from a pages point of view. The mojo based plumbing between the caching layers in the renderer and and browser process is working. The browser side now enforces a size constraint. The observer on the renderer side now longer lived so storage events are not dropped. Events have to be raised even if the local cache is not loaded. BUG=586194 Committed: https://crrev.com/7337bd98d54955a98a1e339367ea21d2c98e49cc Cr-Commit-Position: refs/heads/master@{#385533}

Patch Set 1 #

Patch Set 2 : long lived observer #

Total comments: 4

Patch Set 3 : #

Total comments: 6

Patch Set 4 : comments #

Patch Set 5 : #

Patch Set 6 : #

Total comments: 9

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+247 lines, -97 lines) Patch
M content/browser/dom_storage/dom_storage_context_wrapper.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/dom_storage/dom_storage_context_wrapper.cc View 1 2 3 6 chunks +17 lines, -7 lines 0 comments Download
M content/browser/leveldb_wrapper_impl.h View 1 2 3 4 3 chunks +12 lines, -6 lines 0 comments Download
M content/browser/leveldb_wrapper_impl.cc View 1 2 3 4 5 6 2 chunks +88 lines, -17 lines 0 comments Download
M content/browser/storage_partition_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M content/browser/storage_partition_impl.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M content/common/leveldb_wrapper.mojom View 1 2 3 4 2 chunks +11 lines, -13 lines 0 comments Download
M content/common/storage_partition_service.mojom View 1 2 3 1 chunk +3 lines, -1 line 0 comments Download
M content/renderer/dom_storage/local_storage_cached_area.h View 1 2 3 4 5 6 3 chunks +16 lines, -5 lines 0 comments Download
M content/renderer/dom_storage/local_storage_cached_area.cc View 1 2 3 4 5 6 11 chunks +85 lines, -47 lines 0 comments Download
M mojo/public/cpp/bindings/array.h View 1 chunk +10 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (13 generated)
michaeln
need to rebase, but i think this much is working now https://codereview.chromium.org/1837883003/diff/20001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (left): ...
4 years, 8 months ago (2016-03-29 22:20:46 UTC) #3
jam
https://codereview.chromium.org/1837883003/diff/20001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (left): https://codereview.chromium.org/1837883003/diff/20001/content/browser/leveldb_wrapper_impl.cc#oldcode51 content/browser/leveldb_wrapper_impl.cc:51: void LevelDBWrapperImpl::Get(mojo::Array<uint8_t> key, On 2016/03/29 22:20:46, michaeln wrote: > ...
4 years, 8 months ago (2016-03-30 17:15:16 UTC) #7
michaeln
https://codereview.chromium.org/1837883003/diff/20001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (left): https://codereview.chromium.org/1837883003/diff/20001/content/browser/leveldb_wrapper_impl.cc#oldcode51 content/browser/leveldb_wrapper_impl.cc:51: void LevelDBWrapperImpl::Get(mojo::Array<uint8_t> key, On 2016/03/30 17:15:16, jam wrote: > ...
4 years, 8 months ago (2016-03-30 21:57:01 UTC) #8
jam
lgtm
4 years, 8 months ago (2016-03-31 19:48:30 UTC) #9
Elliot Glaysher
lgtm
4 years, 8 months ago (2016-03-31 21:21:09 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837883003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837883003/100001
4 years, 8 months ago (2016-04-05 18:58:11 UTC) #13
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/164815)
4 years, 8 months ago (2016-04-05 19:10:25 UTC) #15
michaeln
+dcheng for mojom changes, fyi it's still behind a flag
4 years, 8 months ago (2016-04-05 19:53:49 UTC) #16
michaeln
+dcheng for mojom changes (helps to actually add him to the reviewers line)
4 years, 8 months ago (2016-04-05 19:54:22 UTC) #18
dcheng
https://codereview.chromium.org/1837883003/diff/100001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (right): https://codereview.chromium.org/1837883003/diff/100001/content/browser/leveldb_wrapper_impl.cc#newcode93 content/browser/leveldb_wrapper_impl.cc:93: key.Clone(), old_value.Clone(), source); Nit: one space after , https://codereview.chromium.org/1837883003/diff/100001/content/renderer/dom_storage/local_storage_cached_area.cc ...
4 years, 8 months ago (2016-04-06 00:17:39 UTC) #19
michaeln
https://codereview.chromium.org/1837883003/diff/100001/content/browser/leveldb_wrapper_impl.cc File content/browser/leveldb_wrapper_impl.cc (right): https://codereview.chromium.org/1837883003/diff/100001/content/browser/leveldb_wrapper_impl.cc#newcode93 content/browser/leveldb_wrapper_impl.cc:93: key.Clone(), old_value.Clone(), source); On 2016/04/06 00:17:39, dcheng wrote: > ...
4 years, 8 months ago (2016-04-06 01:00:04 UTC) #20
dcheng
lgtm https://codereview.chromium.org/1837883003/diff/100001/content/renderer/dom_storage/local_storage_cached_area.cc File content/renderer/dom_storage/local_storage_cached_area.cc (right): https://codereview.chromium.org/1837883003/diff/100001/content/renderer/dom_storage/local_storage_cached_area.cc#newcode144 content/renderer/dom_storage/local_storage_cached_area.cc:144: base::NullableString16 old_value_str(old_value.To<base::string16>(), false); On 2016/04/06 at 01:00:04, michaeln ...
4 years, 8 months ago (2016-04-06 01:03:12 UTC) #21
michaeln
Thnx > Not part of this CL obviously, but it seems like putting binary data ...
4 years, 8 months ago (2016-04-06 18:50:17 UTC) #22
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1837883003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1837883003/120001
4 years, 8 months ago (2016-04-06 18:53:52 UTC) #25
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-06 20:03:23 UTC) #27
commit-bot: I haz the power
4 years, 8 months ago (2016-04-06 20:05:39 UTC) #29
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/7337bd98d54955a98a1e339367ea21d2c98e49cc
Cr-Commit-Position: refs/heads/master@{#385533}

Powered by Google App Engine
This is Rietveld 408576698