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

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

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: Created 4 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: third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
diff --git a/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h b/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
index b44e72332aa096f70a63b64241eab4472dd4e6a5..c4072518f71534aa07ac3fa3cc18773d954fc078 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
+++ b/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
@@ -6,6 +6,7 @@
#define FetchDataLoader_h
#include "core/dom/DOMArrayBuffer.h"
+#include "core/html/FormData.h"
horo 2016/08/30 05:12:56 you don't need to include here.
e_hakkinen 2016/08/30 07:59:08 Done.
#include "core/streams/Stream.h"
#include "modules/ModulesExport.h"
#include "modules/fetch/FetchDataConsumerHandle.h"
@@ -36,21 +37,25 @@ public:
// The method corresponding to createLoaderAs... is called on success.
virtual void didFetchDataLoadedBlobHandle(PassRefPtr<BlobDataHandle>)
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
virtual void didFetchDataLoadedArrayBuffer(DOMArrayBuffer*)
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
+ }
+ virtual void didFetchDataLoadedFormData(FormData*)
+ {
+ NOTREACHED();
}
virtual void didFetchDataLoadedString(const String&)
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
// This is called after all data are read from |handle| and written
// to |outStream|, and |outStream| is closed or aborted.
virtual void didFetchDataLoadedStream()
{
- ASSERT_NOT_REACHED();
+ NOTREACHED();
}
virtual void didFetchDataLoadFailed() = 0;
@@ -60,6 +65,7 @@ public:
static FetchDataLoader* createLoaderAsBlobHandle(const String& mimeType);
static FetchDataLoader* createLoaderAsArrayBuffer();
+ static FetchDataLoader* createLoaderAsFormData(const String& multipartBoundary);
static FetchDataLoader* createLoaderAsString();
static FetchDataLoader* createLoaderAsStream(Stream* outStream);

Powered by Google App Engine
This is Rietveld 408576698