DescriptionAdd a size estimation mechanism to StoragePartitionHttpCacheDataRemover.
StoragePartitionHttpCacheDataRemover, the class that enables cache clearing based on time constraints [begin, end), is now able to estimate the size in bytes of entries that would be deleted, without actually deleting them.
The actual computation was so far implemented only for the Blockfile cache backend. Simple and Memory backends to be done in follow-up CLs (but the infrastructure is in place, since disk_cache::Backend is purely virtual).
Update: I missed Backend V3 and testing subclasses. They were added in Patch 3.
Added one browsertest for this functionality.
BUG=510028
Committed: https://crrev.com/aee01cebea1d6de51691a6a525ba958184b7a1f6
Cr-Commit-Position: refs/heads/master@{#352830}
Patch Set 1 : #
Total comments: 8
Patch Set 2 : Added more tests. #
Total comments: 1
Patch Set 3 : Missing subclasses. #
Total comments: 2
Patch Set 4 : Typo. #Patch Set 5 : Missed some spots again. #
Total comments: 5
Patch Set 6 : Removed public GetEntrySize #
Total comments: 6
Patch Set 7 : Removed a false comment. #Patch Set 8 : Rebase (chrome_tests.gypi changed) #Patch Set 9 : Support null max time. #
Total comments: 4
Patch Set 10 : Small fixes. #Patch Set 11 : Keep only the unlimited time range. #Patch Set 12 : Rebase #Patch Set 13 : Move tests to a lower layer. #Patch Set 14 : Fixed compilation errors. #
Total comments: 2
Patch Set 15 : static_cast #Messages
Total messages: 50 (10 generated)
|