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

Unified Diff: modules/serviceworkers/Response.idl

Issue 581453002: Dartium Roll 38 roll (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
Patch Set: Sync'd w/ r 182210 Created 6 years, 3 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/serviceworkers/Request.idl ('k') | modules/serviceworkers/ServiceWorker.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: modules/serviceworkers/Response.idl
diff --git a/modules/serviceworkers/Response.idl b/modules/serviceworkers/Response.idl
index fb8ecf3436918dddc2bce85145b54cf91052b59a..28df198dc66a269e2fc19552e23669ed42e41ebf 100644
--- a/modules/serviceworkers/Response.idl
+++ b/modules/serviceworkers/Response.idl
@@ -3,18 +3,24 @@
// found in the LICENSE file.
// http://fetch.spec.whatwg.org/#response-class
-// FIXME: Split this idl/impl into AbstractResponse and Response.
+
+enum ResponseType { "basic", "cors", "default", "error", "opaque" };
+
[
- // FIXME: Add ctors for String, Stream, and ArrayBuffer/ArrayBufferView response bodies.
- Constructor(Blob body, optional Dictionary responseInitDict),
+ // FIXME: Add ctors for ArrayBuffer, ArrayBufferView, FormData,
+ // and URLSearchParams response bodies.
+ Constructor(ScalarValueString body, optional Dictionary responseInitDict),
+ Constructor(Blob? body, optional Dictionary responseInitDict),
RuntimeEnabled=ServiceWorker,
- Exposed=ServiceWorker
+ Exposed=ServiceWorker,
+ RaisesException=Constructor,
+ WillBeGarbageCollected,
] interface Response {
- attribute unsigned short status;
- attribute ByteString statusText;
- readonly attribute HeaderMap headers;
-
- // FIXME: Implement the following:
- // attribute DOMString url;
- // Promise<Blob> toBlob();
+ // FIXME: Implement redirect().
+ readonly attribute ResponseType type;
+ readonly attribute ScalarValueString url;
+ readonly attribute unsigned short status;
+ readonly attribute ByteString statusText;
+ readonly attribute Headers headers;
+ [CallWith=ExecutionContext] readonly attribute FetchBodyStream body;
};
« no previous file with comments | « modules/serviceworkers/Request.idl ('k') | modules/serviceworkers/ServiceWorker.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698