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

Issue 672943002: [ServiceWorkerCache] Return the real size of the cache in GetOriginUsage. (Closed)

Created:
6 years, 2 months ago by jkarlin
Modified:
6 years, 1 month ago
Reviewers:
michaeln, falken
CC:
chromium-reviews, michaeln, jsbell+serviceworker_chromium.org, tzik, serviceworker-reviews, jam, kinuko+serviceworker, nhiroki, darin-cc_chromium.org, horo+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@quota_modified
Project:
chromium
Visibility:
Public.

Description

[ServiceWorkerCache] Return the real size of the cache in GetOriginUsage. The size of the cache on disk is used if the backend is persistent, else the size of the entries in memory is returned. Downstream of: https://codereview.chromium.org/674873002/ BUG=420159 Committed: https://crrev.com/05431b14d85d159302effdd81850f4376cc9ae15 Cr-Commit-Position: refs/heads/master@{#301097}

Patch Set 1 #

Patch Set 2 : Rebase #

Patch Set 3 : More tests and some nits #

Patch Set 4 : Nit #

Patch Set 5 : Rebase #

Total comments: 6

Patch Set 6 : Rebase #

Patch Set 7 : Address comments from PS5 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+134 lines, -6 lines) Patch
M content/browser/service_worker/service_worker_cache.h View 1 2 2 chunks +7 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_cache.cc View 1 2 3 4 5 6 4 chunks +34 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.h View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage.cc View 1 2 1 chunk +14 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage_manager.h View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage_manager.cc View 1 2 3 4 5 1 chunk +14 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_storage_manager_unittest.cc View 1 2 3 chunks +31 lines, -2 lines 0 comments Download
M content/browser/service_worker/service_worker_cache_unittest.cc View 1 2 2 chunks +28 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (2 generated)
jkarlin
michaeln@chromium.org: Please review changes in all falken@chromium.org: Please review changes in all Many thanks :)
6 years, 2 months ago (2014-10-23 17:53:27 UTC) #2
falken
lgtm https://codereview.chromium.org/672943002/diff/80001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/672943002/diff/80001/content/browser/service_worker/service_worker_cache.cc#newcode973 content/browser/service_worker/service_worker_cache.cc:973: disk_cache::Entry* entry = NULL; nullptr https://codereview.chromium.org/672943002/diff/80001/content/browser/service_worker/service_worker_cache.cc#newcode981 content/browser/service_worker/service_worker_cache.cc:981: entries.push_back(entry); ...
6 years, 2 months ago (2014-10-24 02:24:34 UTC) #3
falken
https://codereview.chromium.org/672943002/diff/80001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/672943002/diff/80001/content/browser/service_worker/service_worker_cache.cc#newcode963 content/browser/service_worker/service_worker_cache.cc:963: void NotReachedCompletionCallback(int rv) { can you move this helper ...
6 years, 2 months ago (2014-10-24 03:14:15 UTC) #4
jkarlin
https://codereview.chromium.org/672943002/diff/80001/content/browser/service_worker/service_worker_cache.cc File content/browser/service_worker/service_worker_cache.cc (right): https://codereview.chromium.org/672943002/diff/80001/content/browser/service_worker/service_worker_cache.cc#newcode963 content/browser/service_worker/service_worker_cache.cc:963: void NotReachedCompletionCallback(int rv) { On 2014/10/24 03:14:15, falken wrote: ...
6 years, 2 months ago (2014-10-24 11:53:49 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/672943002/120001
6 years, 2 months ago (2014-10-24 13:45:08 UTC) #7
commit-bot: I haz the power
Committed patchset #7 (id:120001)
6 years, 2 months ago (2014-10-24 14:29:46 UTC) #8
commit-bot: I haz the power
6 years, 2 months ago (2014-10-24 14:30:31 UTC) #9
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/05431b14d85d159302effdd81850f4376cc9ae15
Cr-Commit-Position: refs/heads/master@{#301097}

Powered by Google App Engine
This is Rietveld 408576698