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

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: Change test data to "const unsigned char" instead of "const char" to fix warnings in windows build 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 f2c294f274a50304c36c1e9398df0ba7fdde1601..49d9e1031b93f072a4b9a94a31475df472885bc8 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.cpp
+++ b/third_party/WebKit/Source/core/fetch/Resource.cpp
@@ -936,6 +936,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());
« no previous file with comments | « third_party/WebKit/Source/core/fetch/Resource.h ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698