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

Unified Diff: modules/fetch/Response.idl

Issue 2786203002: Roll 50: Copied IDLs, PYTHON scripts from WebKit removed deleted files in WebCore (Closed)
Patch Set: Created 3 years, 9 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
« no previous file with comments | « modules/fetch/Request.idl ('k') | modules/filesystem/DOMFileSystem.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/fetch/Response.idl
diff --git a/modules/fetch/Response.idl b/modules/fetch/Response.idl
index 5deaa680f4f3581a332d87b9d1cd9fb41f05f978..cd8a275e7e88674b174419930126c1e34b5af5e4 100644
--- a/modules/fetch/Response.idl
+++ b/modules/fetch/Response.idl
@@ -4,19 +4,17 @@
// http://fetch.spec.whatwg.org/#response-class
-enum ResponseType { "basic", "cors", "default", "error", "opaque" };
-
-// FIXME: Add union type: URLSearchParams
-typedef (Blob or ArrayBuffer or ArrayBufferView or FormData or USVString) BodyInit;
+enum ResponseType { "basic", "cors", "default", "error", "opaque", "opaqueredirect" };
[
- Constructor(optional BodyInit body, optional Dictionary responseInitDict),
- ConstructorCallWith=ExecutionContext,
+ // 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,
Exposed=(Window,Worker),
RaisesException=Constructor,
- ActiveDOMObject,
+ DependentLifetime,
GarbageCollected,
- TypeChecking=Interface,
] interface Response {
[CallWith=ExecutionContext] static Response error();
[CallWith=ExecutionContext, RaisesException] static Response redirect(USVString url, optional unsigned short status = 302);
@@ -29,7 +27,7 @@ typedef (Blob or ArrayBuffer or ArrayBufferView or FormData or USVString) BodyIn
[RaisesException] Response clone();
- readonly attribute ReadableByteStream body;
+ [ImplementedAs=bodyWithUseCounter] readonly attribute ReadableByteStream body;
};
Response implements Body;
« no previous file with comments | « modules/fetch/Request.idl ('k') | modules/filesystem/DOMFileSystem.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698