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

Unified Diff: third_party/WebKit/public/platform/Platform.h

Issue 1693183002: Move multipart resource handling to core/fetch (1/2) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@multipart-cleanup-preliminary
Patch Set: rebase Created 4 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
Index: third_party/WebKit/public/platform/Platform.h
diff --git a/third_party/WebKit/public/platform/Platform.h b/third_party/WebKit/public/platform/Platform.h
index 72a3e189e3049825a6a3621c558bfaab13f5455d..05ec7493e6522eedb88d2b4a4d8aa7ab481725ae 100644
--- a/third_party/WebKit/public/platform/Platform.h
+++ b/third_party/WebKit/public/platform/Platform.h
@@ -119,6 +119,7 @@ class WebThread;
class WebTrialTokenValidator;
class WebURL;
class WebURLLoader;
+class WebURLResponse;
class WebUnitTestSupport;
struct WebLocalizedString;
struct WebSize;
@@ -321,6 +322,10 @@ public:
virtual bool portAllowed(const WebURL&) const { return false; }
+ // Returns true and stores the position of the end of the headers to |*end|
+ // if the headers part ends in |bytes[0..size]|. Returns false otherwise.
+ virtual bool parseMultipartHeadersFromBody(const char* bytes, size_t /* size */, WebURLResponse*, size_t* end) const { return false; }
jochen (gone - plz use gerrit) 2016/03/04 12:30:34 should this be a WebVector (bytes)?
yhirano 2016/03/04 18:30:30 Making (const char*, size_t) a WebVector needs mem
+
// Plugins -------------------------------------------------------------
// If refresh is true, then cached information should not be used to

Powered by Google App Engine
This is Rietveld 408576698