Fix loading placeholders for Lo-Fi
WebURLRequest and RequestExtraData Lo-Fi state became out of sync. Remove
Lo-Fi state from RequestExtraData and keep updated on the WebUrlRequest.
This allows us to change the state in WebKit where we cannot update extra
data and pass along on RequestInfo, rather than update extra data later.
Synchronously update the Lo-Fi state in RenderFrameImpl so new frame are
not created with the old state during the asynchronous frame message.
Also, clear the image resource, notify observers, and force a reload when
the original request had Lo-Fi on. If the image was already loaded, make
sure the image had a Lo-Fi response before reloading.
BUG=620203
Review-Url: https://codereview.chromium.org/2114213002
Cr-Commit-Position: refs/heads/master@{#405353}
9 files changed