Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Unified Diff: third_party/WebKit/Source/core/fetch/ImageResource.h

Issue 1624583003: Reload Lo-Fi images inline instead of reloading the whole page (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding blink test Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ImageResource.h
diff --git a/third_party/WebKit/Source/core/fetch/ImageResource.h b/third_party/WebKit/Source/core/fetch/ImageResource.h
index 56c2876a2fff29e49eebdfe959e5538ef7a44fd1..e9e323fa451ba8d1f27efb31d0b5b3cb06ddde45 100644
--- a/third_party/WebKit/Source/core/fetch/ImageResource.h
+++ b/third_party/WebKit/Source/core/fetch/ImageResource.h
@@ -85,6 +85,10 @@ public:
void updateImageAnimationPolicy();
+ // If this ImageResource has the Lo-Fi response headers, reload it with
+ // the Lo-Fi state set to off and bypassing the cache.
+ void reloadIfLoFi(ResourceFetcher*);
+
void didAddClient(ResourceClient*) override;
void didRemoveClient(ResourceClient*) override;

Powered by Google App Engine
This is Rietveld 408576698