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

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

Issue 2423683002: Add Blink support for showing image placeholders using range requests. (Closed)
Patch Set: Created 4 years, 2 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/FetchRequest.cpp
diff --git a/third_party/WebKit/Source/core/fetch/FetchRequest.cpp b/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
index 952e4d42a6954ad986d6f628e54ff29326e327b9..31d5ed66a93c2933deba09af3c6566ca971bdff5 100644
--- a/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
+++ b/third_party/WebKit/Source/core/fetch/FetchRequest.cpp
@@ -40,7 +40,8 @@ FetchRequest::FetchRequest(const ResourceRequest& resourceRequest,
m_linkPreload(false),
m_preloadDiscoveryTime(0.0),
m_defer(NoDefer),
- m_originRestriction(UseDefaultOriginRestrictionForType) {
+ m_originRestriction(UseDefaultOriginRestrictionForType),
+ m_placeholderImageRequestType(DisallowPlaceholder) {
m_options.initiatorInfo.name = initiator;
}
@@ -53,7 +54,9 @@ FetchRequest::FetchRequest(const ResourceRequest& resourceRequest,
m_linkPreload(false),
m_preloadDiscoveryTime(0.0),
m_defer(NoDefer),
- m_originRestriction(UseDefaultOriginRestrictionForType) {
+ m_originRestriction(UseDefaultOriginRestrictionForType),
+ m_placeholderImageRequestType(
+ PlaceholderImageRequestType::DisallowPlaceholder) {
m_options.initiatorInfo.name = initiator;
}
@@ -65,7 +68,9 @@ FetchRequest::FetchRequest(const ResourceRequest& resourceRequest,
m_linkPreload(false),
m_preloadDiscoveryTime(0.0),
m_defer(NoDefer),
- m_originRestriction(UseDefaultOriginRestrictionForType) {
+ m_originRestriction(UseDefaultOriginRestrictionForType),
+ m_placeholderImageRequestType(
+ PlaceholderImageRequestType::DisallowPlaceholder) {
m_options.initiatorInfo = initiator;
}

Powered by Google App Engine
This is Rietveld 408576698