DescriptionIntroduce 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 : '' #
Messages
Total messages: 10 (0 generated)
|