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

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: Rebased on master Created 3 years, 10 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
« no previous file with comments | « third_party/WebKit/Source/platform/network/HTTPParsers.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 7ed28d653ef8fe7f23b5d6aadbd6f918c8f0befd..91b38a991c4799bf83713d2ed3c4382dd46b6c63 100644
--- a/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
+++ b/third_party/WebKit/Source/platform/network/HTTPParsers.cpp
@@ -876,4 +876,13 @@ std::unique_ptr<JSONArray> parseJSONHeader(const String& header,
return JSONArray::from(std::move(headerValue));
}
+bool parseContentRangeHeaderFor206(const String& contentRange,
+ int64_t* firstBytePosition,
+ int64_t* lastBytePosition,
+ int64_t* instanceLength) {
+ return net::HttpUtil::ParseContentRangeHeaderFor206(
+ StringUTF8Adaptor(contentRange).asStringPiece(), firstBytePosition,
+ lastBytePosition, instanceLength);
+}
+
} // namespace blink
« no previous file with comments | « 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