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

Unified Diff: Source/modules/fetch/RequestInit.h

Issue 1301523002: [Fetch API] Send request body as a FormData. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 4 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: Source/modules/fetch/RequestInit.h
diff --git a/Source/modules/fetch/RequestInit.h b/Source/modules/fetch/RequestInit.h
index ef7dc4dae6178596f4a50681beed6d556f5a912d..38d3cfb89de7cfac48ee64ca27bbcc1c45ed00f4 100644
--- a/Source/modules/fetch/RequestInit.h
+++ b/Source/modules/fetch/RequestInit.h
@@ -7,13 +7,14 @@
#include "bindings/core/v8/Dictionary.h"
#include "platform/heap/Handle.h"
+#include "wtf/OwnPtr.h"
#include "wtf/RefPtr.h"
#include "wtf/text/WTFString.h"
namespace blink {
-class BlobDataHandle;
class ExceptionState;
+class FetchDataConsumerHandle;
class Headers;
// FIXME: Use IDL dictionary instead of this class.
@@ -25,7 +26,8 @@ public:
String method;
Member<Headers> headers;
Dictionary headersDictionary;
- RefPtr<BlobDataHandle> bodyBlobHandle;
+ String contentType;
+ OwnPtr<FetchDataConsumerHandle> body;
String mode;
String credentials;
String redirect;

Powered by Google App Engine
This is Rietveld 408576698