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

Unified Diff: third_party/WebKit/Source/platform/network/HTTPParsers.cpp

Issue 2543073002: Don't show a placeholder if the response contains the full image. (Closed)
Patch Set: Initial patchset 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/platform/network/HTTPParsers.cpp
diff --git a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
index bd5257dece6b4a7ce03560d17ba556f50cd38c51..805948d6a3c19e12500ce4f577b507d7f39f94a0 100644
--- a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
+++ b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
@@ -910,4 +910,13 @@ std::unique_ptr<JSONArray> parseJSONHeader(const String& header,
return JSONArray::from(std::move(headerValue));
}
+bool parseContentRangeHeader(const String& contentRange,
+ int64_t* firstBytePosition,
+ int64_t* lastBytePosition,
+ int64_t* instanceLength) {
+ return net::HttpUtil::ParseContentRangeHeader(
+ StringUTF8Adaptor(contentRange).asStringPiece(), firstBytePosition,
+ lastBytePosition, instanceLength);
+}
+
} // namespace blink
« net/http/http_util.cc ('K') | « third_party/WebKit/Source/platform/network/HTTPParsers.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698