Description[HTTP Cache] Prevent memory backend from exceeding its max size
Prevents the memory backend from writing additional bytes if they will cause
the cache to exceed its max size.
The HttpCache tests already verify that they can handle a failed write after
the cache has already started writing, see
HttpCache.SimpleGETWithDiskFailures2.
BUG=705053
Review-Url: https://codereview.chromium.org/2784803004
Cr-Commit-Position: refs/heads/master@{#460826}
Committed: https://chromium.googlesource.com/chromium/src/+/c383a4d067322844776e4029c86803748f0526d0
Patch Set 1 #Patch Set 2 : Better implementation #Patch Set 3 : Fail before adjusting memory size #Patch Set 4 : Nits #
Total comments: 5
Patch Set 5 : Address comments from PS4 #
Depends on Patchset: Messages
Total messages: 27 (19 generated)
|