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 93c26cfddf0ab562714c1ca99c15779a4ac6a2b8..207ffe4c83fd78b41670fd6600ff1e24d2297c0c 100644 |
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.h |
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.h |
@@ -49,6 +49,10 @@ class CORE_EXPORT FetchRequest { |
RestrictToSameOrigin, |
NoOriginRestriction |
}; |
+ enum PlaceholderImageRequestType { |
+ DisallowPlaceholder = 0, // The requested image must not be a placeholder. |
+ AllowPlaceholder, // The image is allowed to be a placeholder. |
+ }; |
struct ResourceWidth { |
DISALLOW_NEW(); |
@@ -121,6 +125,14 @@ class CORE_EXPORT FetchRequest { |
m_options.parserDisposition = parserDisposition; |
} |
+ PlaceholderImageRequestType placeholderImageRequestType() const { |
+ return m_placeholderImageRequestType; |
+ } |
+ void setPlaceholderImageRequestType( |
+ PlaceholderImageRequestType placeholderImageRequestType) { |
+ m_placeholderImageRequestType = placeholderImageRequestType; |
+ } |
+ |
void makeSynchronous(); |
private: |
@@ -134,6 +146,7 @@ class CORE_EXPORT FetchRequest { |
OriginRestriction m_originRestriction; |
ResourceWidth m_resourceWidth; |
ClientHintsPreferences m_clientHintPreferences; |
+ PlaceholderImageRequestType m_placeholderImageRequestType; |
}; |
} // namespace blink |