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

Unified Diff: Source/modules/serviceworkers/Response.idl

Issue 307063002: ServiceWorker: Add a Response ctor that accepts the body as a Blob (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: don't crash on null body Created 6 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
« no previous file with comments | « Source/modules/serviceworkers/Response.cpp ('k') | Source/platform/exported/WebServiceWorkerResponse.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Response.idl
diff --git a/Source/modules/serviceworkers/Response.idl b/Source/modules/serviceworkers/Response.idl
index 67617a6bfa678fda754da02bec1b90f186a1e75b..4d650fee7a8f1a3c2988cc534f9206140ecd79ff 100644
--- a/Source/modules/serviceworkers/Response.idl
+++ b/Source/modules/serviceworkers/Response.idl
@@ -5,7 +5,10 @@
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#response-objects
// FIXME: Split this idl/impl into AbstractResponse and Response.
[
+ // FIXME: Remove this legacy function after the required Chromium-side patch lands.
Constructor(optional Dictionary responseInitDict),
+ // FIXME: Add ctors for String, Stream, and ArrayBuffer/ArrayBufferView response bodies.
+ Constructor(Blob body, optional Dictionary responseInitDict),
RuntimeEnabled=ServiceWorker,
Exposed=ServiceWorker
] interface Response {
« no previous file with comments | « Source/modules/serviceworkers/Response.cpp ('k') | Source/platform/exported/WebServiceWorkerResponse.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698