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

Issue 120004: Introduce parent and child entries for MemEntryImpl... (Closed)

Created:
11 years, 6 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Introduce parent and child entries for MemEntryImpl Defines enums for kParentEntry and kChildEntry in MemEntryImpl. Also has code in MemBackendImpl to create a slave entry. Parent entries are non-sparse entries until sparse API are called on them, and they would start to keep a list of child entries. Child entries hold partial content and are not susposed to be accessible from the public and are managed by the parent entry that created it. Child entries are registered in the backend's ranking list to allow individual eviction. More details about how child entries are to be used are in the comments. TEST=DiskCacheEntryTest.MemoryOnlyEnumerationWithSlaveEntries Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18432

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 28

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Total comments: 25

Patch Set 6 : '' #

Total comments: 4

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+167 lines, -32 lines) Patch
M net/disk_cache/entry_unittest.cc View 3 4 5 6 7 3 chunks +45 lines, -1 line 0 comments Download
M net/disk_cache/mem_backend_impl.h View 1 2 3 4 5 3 chunks +11 lines, -2 lines 0 comments Download
M net/disk_cache/mem_backend_impl.cc View 1 2 3 4 5 4 chunks +22 lines, -16 lines 0 comments Download
M net/disk_cache/mem_entry_impl.h View 1 2 3 4 5 6 7 4 chunks +39 lines, -9 lines 0 comments Download
M net/disk_cache/mem_entry_impl.cc View 1 2 3 4 5 6 chunks +50 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Alpha Left Google
The first bit of change that defines two types of memory cache entries, master and ...
11 years, 6 months ago (2009-06-10 22:40:54 UTC) #1
rvargas (doing something else)
The approach seems fine to me. I guess there are a few places that may ...
11 years, 6 months ago (2009-06-11 20:23:05 UTC) #2
Alpha Left Google
Sorry for the delay. I addressed all the problems you mentioned. http://codereview.chromium.org/120004/diff/12/1010 File net/disk_cache/backend_unittest.cc (right): ...
11 years, 6 months ago (2009-06-12 22:16:15 UTC) #3
rvargas (doing something else)
Thanks. Looks good. http://codereview.chromium.org/120004/diff/3021/3026 File net/disk_cache/entry_unittest.cc (right): http://codereview.chromium.org/120004/diff/3021/3026#newcode14 Line 14: #include "net/disk_cache/mem_backend_impl.h" nit: I don't ...
11 years, 6 months ago (2009-06-13 22:07:48 UTC) #4
darin (slow to review)
please remember to update the description of this CL since master/slave appear to have been ...
11 years, 6 months ago (2009-06-14 05:17:12 UTC) #5
Alpha Left Google
To access the private method we need to keep the whole DiskCacheEntryTest in disk_cache namespace.. ...
11 years, 6 months ago (2009-06-15 18:13:29 UTC) #6
rvargas (doing something else)
OK. http://codereview.chromium.org/120004/diff/3021/3026 File net/disk_cache/entry_unittest.cc (right): http://codereview.chromium.org/120004/diff/3021/3026#newcode843 Line 843: EXPECT_TRUE(child_entry->CreateChildEntry(parent_entry)); sure, but does it compile without ...
11 years, 6 months ago (2009-06-15 18:48:48 UTC) #7
Alpha Left Google
http://codereview.chromium.org/120004/diff/3021/3026 File net/disk_cache/entry_unittest.cc (right): http://codereview.chromium.org/120004/diff/3021/3026#newcode843 Line 843: EXPECT_TRUE(child_entry->CreateChildEntry(parent_entry)); Let's keep CreateChildEntry public so we can ...
11 years, 6 months ago (2009-06-15 20:05:51 UTC) #8
Alpha Left Google
http://codereview.chromium.org/120004/diff/3030/2014 File net/disk_cache/entry_unittest.cc (right): http://codereview.chromium.org/120004/diff/3030/2014#newcode862 Line 862: // internally. Now we have to doom this ...
11 years, 6 months ago (2009-06-15 20:07:32 UTC) #9
rvargas (doing something else)
11 years, 6 months ago (2009-06-15 20:37:47 UTC) #10
OK

Powered by Google App Engine
This is Rietveld 408576698