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

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

Issue 2292763002: [Fetch API] Implement Request.formData and Response.formData. (Closed)
Patch Set: More global-interface-listing*-expected.txt, urlencoded-parser-expected.txt Created 3 years, 7 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 d379e5e0b01d781594930b5d9cb4ce033d5de6d3..a8509d87feba3d24f085751ee3afd26260fec873 100644
--- a/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
+++ b/third_party/WebKit/Source/modules/fetch/FetchDataLoader.h
@@ -16,6 +16,7 @@
namespace blink {
class BytesConsumer;
+class FormData;
// FetchDataLoader subclasses
// 1. take a BytesConsumer,
@@ -41,6 +42,7 @@ class MODULES_EXPORT FetchDataLoader
virtual void DidFetchDataLoadedArrayBuffer(DOMArrayBuffer*) {
NOTREACHED();
}
+ virtual void DidFetchDataLoadedFormData(FormData*) { NOTREACHED(); }
virtual void DidFetchDataLoadedString(const String&) { NOTREACHED(); }
// This is called after all data are read from |handle| and written
// to |out_data_pipe|, and |out_data_pipe| is closed or aborted.
@@ -57,6 +59,9 @@ class MODULES_EXPORT FetchDataLoader
static FetchDataLoader* CreateLoaderAsBlobHandle(const String& mime_type);
static FetchDataLoader* CreateLoaderAsArrayBuffer();
+ static FetchDataLoader* CreateLoaderAsFailure();
+ static FetchDataLoader* CreateLoaderAsFormData(
+ const String& multipart_boundary);
static FetchDataLoader* CreateLoaderAsString();
static FetchDataLoader* CreateLoaderAsDataPipe(
mojo::ScopedDataPipeProducerHandle out_data_pipe);

Powered by Google App Engine
This is Rietveld 408576698