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

Issue 13913010: Add Cache size to the Simple Index. (Closed)

Created:
7 years, 8 months ago by felipeg
Modified:
7 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org
Visibility:
Public.

Description

Add Cache size to the Simple Index. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=193419

Patch Set 1 #

Patch Set 2 : fixing the branching issue #

Total comments: 6

Patch Set 3 : gavins comments #

Total comments: 4

Patch Set 4 : #

Total comments: 2

Patch Set 5 : #

Total comments: 21

Patch Set 6 : #

Patch Set 7 : syncing #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -9 lines) Patch
M net/disk_cache/simple/simple_disk_format.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_disk_format.cc View 1 1 chunk +7 lines, -3 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.h View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 3 4 5 6 3 chunks +9 lines, -2 lines 0 comments Download
M net/disk_cache/simple/simple_index.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_index.cc View 1 2 3 4 5 6 4 chunks +35 lines, -3 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.h View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M net/disk_cache/simple/simple_synchronous_entry.cc View 1 2 3 4 5 6 2 chunks +12 lines, -0 lines 0 comments Download

Messages

Total messages: 14 (0 generated)
gavinp
This change introduces a second concept of size into the simple backend, and it mixes ...
7 years, 8 months ago (2013-04-09 15:27:37 UTC) #1
gavinp
https://chromiumcodereview.appspot.com/13913010/diff/14/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/13913010/diff/14/net/disk_cache/simple/simple_entry_impl.cc#newcode296 net/disk_cache/simple/simple_entry_impl.cc:296: total_entry_size += data_size_[i]; Maybe add SimpleSynchronousEntry::GetFileSize()?
7 years, 8 months ago (2013-04-09 15:40:19 UTC) #2
felipeg
https://chromiumcodereview.appspot.com/13913010/diff/14/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/13913010/diff/14/net/disk_cache/simple/simple_entry_impl.cc#newcode275 net/disk_cache/simple/simple_entry_impl.cc:275: // cache size ? On 2013/04/09 15:27:37, gavinp wrote: ...
7 years, 8 months ago (2013-04-09 16:24:35 UTC) #3
gavinp
https://chromiumcodereview.appspot.com/13913010/diff/7001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/13913010/diff/7001/net/disk_cache/simple/simple_entry_impl.cc#newcode268 net/disk_cache/simple/simple_entry_impl.cc:268: DCHECK(index); I don't think this DCHECK is right. What ...
7 years, 8 months ago (2013-04-09 16:28:04 UTC) #4
felipeg
https://chromiumcodereview.appspot.com/13913010/diff/7001/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/13913010/diff/7001/net/disk_cache/simple/simple_entry_impl.cc#newcode268 net/disk_cache/simple/simple_entry_impl.cc:268: DCHECK(index); On 2013/04/09 16:28:04, gavinp wrote: > I don't ...
7 years, 8 months ago (2013-04-09 16:36:39 UTC) #5
gavinp
I'm going to look over this more, but just one comment for now; I'll hold ...
7 years, 8 months ago (2013-04-09 16:42:57 UTC) #6
felipeg
https://chromiumcodereview.appspot.com/13913010/diff/4003/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/13913010/diff/4003/net/disk_cache/simple/simple_entry_impl.cc#newcode268 net/disk_cache/simple/simple_entry_impl.cc:268: if (sync_entry && index) On 2013/04/09 16:42:57, gavinp wrote: ...
7 years, 8 months ago (2013-04-09 16:46:57 UTC) #7
gavinp
https://codereview.chromium.org/13913010/diff/4004/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://codereview.chromium.org/13913010/diff/4004/net/disk_cache/simple/simple_entry_impl.cc#newcode269 net/disk_cache/simple/simple_entry_impl.cc:269: if (sync_entry && index) if (index) https://codereview.chromium.org/13913010/diff/4004/net/disk_cache/simple/simple_entry_impl.h File net/disk_cache/simple/simple_entry_impl.h ...
7 years, 8 months ago (2013-04-10 10:33:23 UTC) #8
felipeg
https://chromiumcodereview.appspot.com/13913010/diff/4004/net/disk_cache/simple/simple_entry_impl.cc File net/disk_cache/simple/simple_entry_impl.cc (right): https://chromiumcodereview.appspot.com/13913010/diff/4004/net/disk_cache/simple/simple_entry_impl.cc#newcode269 net/disk_cache/simple/simple_entry_impl.cc:269: if (sync_entry && index) On 2013/04/10 10:33:23, gavinp wrote: ...
7 years, 8 months ago (2013-04-10 11:45:35 UTC) #9
gavinp
LGTM. I suggest a CL getting the method order correct in the .cc file as ...
7 years, 8 months ago (2013-04-10 14:49:29 UTC) #10
pasko-google - do not use
It would be nice to have a test to create a few entries with the ...
7 years, 8 months ago (2013-04-10 15:26:54 UTC) #11
gavinp
On 2013/04/10 15:26:54, pasko wrote: > It would be nice to have a test to ...
7 years, 8 months ago (2013-04-10 15:33:26 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/felipeg@chromium.org/13913010/34002
7 years, 8 months ago (2013-04-10 15:58:01 UTC) #13
commit-bot: I haz the power
7 years, 8 months ago (2013-04-10 17:59:29 UTC) #14
Message was sent while issue was closed.
Change committed as 193419

Powered by Google App Engine
This is Rietveld 408576698