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

Unified Diff: third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.h

Issue 1808353003: Make multipart/x-mixed-replace parser more robust (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-3
Patch Set: Created 4 years, 9 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/MultipartImageResourceParser.h
diff --git a/third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.h b/third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.h
index c59e7a3051215c990515a5fa35373936397a5e36..6b39fdef4ce7e03d4def80eacab6fa4bfe31a78a 100644
--- a/third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.h
+++ b/third_party/WebKit/Source/core/fetch/MultipartImageResourceParser.h
@@ -67,13 +67,13 @@ public:
DECLARE_TRACE();
- static size_t pushOverLineForTest(const Vector<char>& data, size_t size) { return pushOverLine(data, size); }
+ static size_t skippableLengthForTest(const Vector<char>& data, size_t size) { return skippableLength(data, size); }
static size_t findBoundaryForTest(const Vector<char>& data, Vector<char>* boundary) { return findBoundary(data, boundary); }
private:
bool parseHeaders();
bool isCancelled() const { return m_isCancelled; }
- static size_t pushOverLine(const Vector<char>&, size_t);
+ static size_t skippableLength(const Vector<char>&, size_t);
// This function updates |*boundary|.
static size_t findBoundary(const Vector<char>& data, Vector<char>* boundary);

Powered by Google App Engine
This is Rietveld 408576698