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

Unified Diff: third_party/WebKit/Source/modules/fetch/Response.idl

Issue 1527493002: Revert of Response construction with a ReadableStream (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/Response.idl
diff --git a/third_party/WebKit/Source/modules/fetch/Response.idl b/third_party/WebKit/Source/modules/fetch/Response.idl
index 4ac9f4038fe0600beef44bcf31ac275b1b9cdccc..556488f7fe9ee8e8d35e432469ed8da2a170013b 100644
--- a/third_party/WebKit/Source/modules/fetch/Response.idl
+++ b/third_party/WebKit/Source/modules/fetch/Response.idl
@@ -6,11 +6,12 @@
enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredirect" };
+// FIXME: Add union type: URLSearchParams
+typedef (Blob or ArrayBuffer or ArrayBufferView or FormData or USVString) BodyInit;
+
[
- // TODO(yhirano): We use "any" for body because the IDL processor doesn't
- // recognize ReadableStream implemented with V8 extras. Fix it.
- Constructor(optional any body, optional Dictionary responseInitDict),
- ConstructorCallWith=ScriptState,
+ Constructor(optional BodyInit body, optional Dictionary responseInitDict),
+ ConstructorCallWith=ExecutionContext,
Exposed=(Window,Worker),
RaisesException=Constructor,
ActiveDOMObject,
« no previous file with comments | « third_party/WebKit/Source/modules/fetch/Response.cpp ('k') | third_party/WebKit/Source/modules/modules.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698