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

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

Issue 2527353002: Phase II Step 3: Reload LoFi/placeholder images via new ImageResource
Patch Set: reloadLoFiImages test Created 4 years 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/FetchRequest.h
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.h b/third_party/WebKit/Source/core/fetch/FetchRequest.h
index de5f3461da6b52e40b705b23a1b1fec4f767815d..e20ce0067cdb3a27b35f808c658b1c94e1b47c82 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.h
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.h
@@ -144,6 +144,11 @@ class CORE_EXPORT FetchRequest {
// method sets m_placeholderImageRequestType to the appropriate value.
void setAllowImagePlaceholder();
+ // Enforce creation of new Resource object.
+ // Currently this is only for LoFi/Placeholder image reloading.
+ bool enforceNewResource() const { return m_enforceNewResource; }
+ void setEnforceNewResource() { m_enforceNewResource = true; }
+
private:
ResourceRequest m_resourceRequest;
String m_charset;
@@ -156,6 +161,7 @@ class CORE_EXPORT FetchRequest {
ResourceWidth m_resourceWidth;
ClientHintsPreferences m_clientHintPreferences;
PlaceholderImageRequestType m_placeholderImageRequestType;
+ bool m_enforceNewResource = false;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698