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

Issue 2626173003: Calculate the size of all cache entries between two points in time. (Closed)

Created:
3 years, 11 months ago by dullweber
Modified:
3 years, 11 months ago
Reviewers:
gavinp
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Calculate the size of all cache entries between two points in time if it can be done efficiently. Size calculation is implemented for SimpleBackend using the SimpleIndex and the MemBackend. The blockfile Backend returns ERR_NOT_IMPLEMENTED because it would have to read all entries from disk. BUG=671196 Review-Url: https://codereview.chromium.org/2626173003 Cr-Commit-Position: refs/heads/master@{#443870} Committed: https://chromium.googlesource.com/chromium/src/+/a0030054d0f06d89c91a0b6198a1956cd4915861

Patch Set 1 #

Patch Set 2 : fix unit_tests compilation #

Total comments: 10

Patch Set 3 : add default implementation, small fixes #

Patch Set 4 : revert cache_storage_cache_unittest.cc #

Unified diffs Side-by-side diffs Delta from patch set Stats (+194 lines, -219 lines) Patch
M net/disk_cache/backend_unittest.cc View 2 chunks +65 lines, -0 lines 0 comments Download
D net/disk_cache/cache_creator.cc View 1 2 1 chunk +0 lines, -192 lines 0 comments Download
M net/disk_cache/disk_cache.h View 1 2 2 chunks +14 lines, -2 lines 0 comments Download
A + net/disk_cache/disk_cache.cc View 1 2 3 chunks +13 lines, -15 lines 0 comments Download
M net/disk_cache/disk_cache_test_base.h View 1 chunk +2 lines, -0 lines 0 comments Download
M net/disk_cache/disk_cache_test_base.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M net/disk_cache/memory/mem_backend_impl.h View 1 chunk +4 lines, -0 lines 0 comments Download
M net/disk_cache/memory/mem_backend_impl.cc View 1 2 2 chunks +20 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_backend_impl.h View 1 2 2 chunks +11 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_backend_impl.cc View 1 2 2 chunks +21 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index.h View 1 chunk +6 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 2 2 chunks +28 lines, -8 lines 0 comments Download
M net/net.gypi View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 31 (20 generated)
dullweber
Hi Gavin, I implemented cache size calculation for the SimpleBackend and closed the other reviews. ...
3 years, 11 months ago (2017-01-12 13:58:06 UTC) #14
gavinp
this looks pretty reasonable, and probably pretty close. some questions below about organisation. Thanks! https://codereview.chromium.org/2626173003/diff/20001/net/disk_cache/blockfile/backend_impl.cc ...
3 years, 11 months ago (2017-01-12 16:07:36 UTC) #15
dullweber
Thanks for the fast review! I fixed the small issues and responded to the other ...
3 years, 11 months ago (2017-01-12 17:03:15 UTC) #16
gavinp
I think you should add the explicit .cc file for disk_cache.h. I think that's conceptually ...
3 years, 11 months ago (2017-01-12 20:38:35 UTC) #17
gavinp
And, incidentally, disk_cache.h isn't so pure; note that disk_cache::CreateCacheBackend() is declared there and defined elsewhere. ...
3 years, 11 months ago (2017-01-12 20:51:49 UTC) #18
gavinp
On 2017/01/12 20:51:49, gavinp wrote: > And, incidentally, disk_cache.h isn't so pure; note that > ...
3 years, 11 months ago (2017-01-12 21:19:45 UTC) #19
gavinp
On 2017/01/12 20:51:49, gavinp wrote: > And, incidentally, disk_cache.h isn't so pure; note that > ...
3 years, 11 months ago (2017-01-12 21:19:48 UTC) #20
dullweber
On 2017/01/12 21:19:48, gavinp wrote: > On 2017/01/12 20:51:49, gavinp wrote: > > And, incidentally, ...
3 years, 11 months ago (2017-01-13 10:04:35 UTC) #23
gavinp
lgtm. Good work! Thanks!
3 years, 11 months ago (2017-01-13 20:51:16 UTC) #26
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2626173003/60001
3 years, 11 months ago (2017-01-16 10:07:01 UTC) #28
commit-bot: I haz the power
3 years, 11 months ago (2017-01-16 11:57:04 UTC) #31
Message was sent while issue was closed.
Committed patchset #4 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/a0030054d0f06d89c91a0b6198a1...

Powered by Google App Engine
This is Rietveld 408576698