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

Issue 1681653002: [CacheStorage] Use backend size to determine change in cache size in put and delete (Closed)

Created:
4 years, 10 months ago by jkarlin
Modified:
4 years, 10 months ago
Reviewers:
michaeln
CC:
chromium-reviews, darin-cc_chromium.org, jam, jkarlin+watch_chromium.org, nhiroki
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

[CacheStorage] Use backend size to determine change in cache size in put and delete Rather than just report the size of the metadata and the body, report the difference in cache size from before and after the operation. This fits better with GetOriginSize which sums cache sizes. BUG=581709 Committed: https://crrev.com/30395012ca331a41f784ce0d129c7eaf4d79f458 Cr-Commit-Position: refs/heads/master@{#375295}

Patch Set 1 #

Patch Set 2 : Fixes #

Patch Set 3 : Nits #

Patch Set 4 : Rebase #

Patch Set 5 : Delta from last report #

Total comments: 3

Patch Set 6 : UpdateCacheSize in parallel #

Patch Set 7 : Rebase #

Total comments: 5

Patch Set 8 : Run callbacks immediately #

Unified diffs Side-by-side diffs Delta from patch set Stats (+88 lines, -82 lines) Patch
M content/browser/cache_storage/cache_storage_cache.h View 1 2 3 4 5 3 chunks +16 lines, -10 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache.cc View 1 2 3 4 5 6 7 12 chunks +62 lines, -72 lines 0 comments Download
M content/browser/cache_storage/cache_storage_cache_unittest.cc View 1 2 3 4 5 2 chunks +10 lines, -0 lines 0 comments Download

Messages

Total messages: 24 (11 generated)
jkarlin
michaeln@ PTAL at everything, thanks!
4 years, 10 months ago (2016-02-08 20:59:07 UTC) #3
michaeln
can multiple ops be running concurrently? i'm wondering if a change made by one op ...
4 years, 10 months ago (2016-02-09 22:23:03 UTC) #4
jkarlin
On 2016/02/09 22:23:03, michaeln wrote: > can multiple ops be running concurrently? i'm wondering if ...
4 years, 10 months ago (2016-02-10 12:27:03 UTC) #5
jkarlin
On 2016/02/10 12:27:03, jkarlin wrote: > On 2016/02/09 22:23:03, michaeln wrote: > > can multiple ...
4 years, 10 months ago (2016-02-10 16:24:53 UTC) #7
jkarlin
michaeln: PTAL, thanks!
4 years, 10 months ago (2016-02-11 16:49:29 UTC) #10
michaeln
lgtm (but please see the question) https://codereview.chromium.org/1681653002/diff/140001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/1681653002/diff/140001/content/browser/cache_storage/cache_storage_cache.cc#newcode255 content/browser/cache_storage/cache_storage_cache.cc:255: : request(std::move(request)), nice ...
4 years, 10 months ago (2016-02-12 02:06:04 UTC) #11
jkarlin
Thanks! PTAL at some changes I made in regards to your comment. https://codereview.chromium.org/1681653002/diff/140001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc ...
4 years, 10 months ago (2016-02-12 16:33:12 UTC) #13
michaeln
https://codereview.chromium.org/1681653002/diff/200001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/1681653002/diff/200001/content/browser/cache_storage/cache_storage_cache.cc#newcode905 content/browser/cache_storage/cache_storage_cache.cc:905: FROM_HERE, base::Bind(put_context->callback, CACHE_STORAGE_OK)); at first i didn't understand why ...
4 years, 10 months ago (2016-02-12 20:16:53 UTC) #14
jkarlin
https://codereview.chromium.org/1681653002/diff/200001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/1681653002/diff/200001/content/browser/cache_storage/cache_storage_cache.cc#newcode905 content/browser/cache_storage/cache_storage_cache.cc:905: FROM_HERE, base::Bind(put_context->callback, CACHE_STORAGE_OK)); On 2016/02/12 20:16:53, michaeln wrote: > ...
4 years, 10 months ago (2016-02-12 20:25:49 UTC) #15
jkarlin
https://codereview.chromium.org/1681653002/diff/200001/content/browser/cache_storage/cache_storage_cache.cc File content/browser/cache_storage/cache_storage_cache.cc (right): https://codereview.chromium.org/1681653002/diff/200001/content/browser/cache_storage/cache_storage_cache.cc#newcode905 content/browser/cache_storage/cache_storage_cache.cc:905: FROM_HERE, base::Bind(put_context->callback, CACHE_STORAGE_OK)); On 2016/02/12 20:25:49, jkarlin wrote: > ...
4 years, 10 months ago (2016-02-12 20:28:29 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1681653002/240001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1681653002/240001
4 years, 10 months ago (2016-02-13 00:18:50 UTC) #20
commit-bot: I haz the power
Committed patchset #8 (id:240001)
4 years, 10 months ago (2016-02-13 00:58:52 UTC) #22
commit-bot: I haz the power
4 years, 10 months ago (2016-02-16 22:46:09 UTC) #24
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/30395012ca331a41f784ce0d129c7eaf4d79f458
Cr-Commit-Position: refs/heads/master@{#375295}

Powered by Google App Engine
This is Rietveld 408576698