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

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

Issue 2423683002: Add Blink support for showing image placeholders using range requests. (Closed)
Patch Set: Addressed comments 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/Resource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/Resource.cpp b/third_party/WebKit/Source/core/fetch/Resource.cpp
index 6339c15de125e22e0b0539b8f6b894db9052f657..99b3a6c1ae4ee926278f0dff83d3cfa5c23981e2 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -932,6 +932,10 @@ void Resource::setLoFiStateOff() {
m_resourceRequest.setLoFiState(WebURLRequest::LoFiOff);
}
+void Resource::clearRangeRequestHeader() {
+ m_resourceRequest.clearHTTPHeaderField("range");
+}
+
void Resource::revalidationSucceeded(
const ResourceResponse& validatingResponse) {
SECURITY_CHECK(m_redirectChain.isEmpty());

Powered by Google App Engine
This is Rietveld 408576698