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

Unified Diff: third_party/WebKit/Source/modules/fetch/Body.h

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: Rebase Created 3 years, 8 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/modules/fetch/Body.h
diff --git a/third_party/WebKit/Source/modules/fetch/Body.h b/third_party/WebKit/Source/modules/fetch/Body.h
index 63f70cf099890f4c1d1a262c559b88354cea5e6d..e8c6de6edd6736d05433f0a1c7ddb542ecfd9b83 100644
--- a/third_party/WebKit/Source/modules/fetch/Body.h
+++ b/third_party/WebKit/Source/modules/fetch/Body.h
@@ -40,7 +40,7 @@ class MODULES_EXPORT Body : public GarbageCollected<Body>,
ScriptPromise arrayBuffer(ScriptState*);
ScriptPromise blob(ScriptState*);
- ScriptPromise FormData(ScriptState*);
+ ScriptPromise formData(ScriptState*);
ScriptPromise json(ScriptState*);
ScriptPromise text(ScriptState*);
ScriptValue body(ScriptState*);
@@ -56,6 +56,9 @@ class MODULES_EXPORT Body : public GarbageCollected<Body>,
DEFINE_INLINE_VIRTUAL_TRACE() { ContextClient::Trace(visitor); }
private:
+ // TODO(e_hakkinen): Fix |MimeType()| to always contain parameters and
+ // remove |ContentType()|.
+ virtual String ContentType() const = 0;
virtual String MimeType() const = 0;
// Body consumption algorithms will reject with a TypeError in a number of

Powered by Google App Engine
This is Rietveld 408576698