Http Cache: Stop toggling prefetch values before and after write
This CL introduces a new member to HttpCache::Transaction, called |updated_prefetch_response_|. This response is optionally a copy of |response_|, used when writing modified values on prefetch responses for future transactions. This is used instead of the current flow of: - Modifying |response_| - Writing it - Un-modifying it for the current transaction Furthermore, when |updated_prefetch_response_| is non-null, WriteResponseInfoToEntry prefers writing this response to |response_|. Bug: 939317 Change-Id: Ic92683411f495b99fca22a675191b050edd72a02 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1760632 Commit-Queue: Dominic Farolino <dom@chromium.org> Reviewed-by:Josh Karlin <jkarlin@chromium.org> Cr-Commit-Position: refs/heads/master@{#691520}
Showing
Please register or sign in to comment