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

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

Issue 555443002: [Fetch API] Put body members directly on Response/Request (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: 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
Index: Source/modules/serviceworkers/Response.idl
diff --git a/Source/modules/serviceworkers/Response.idl b/Source/modules/serviceworkers/Response.idl
index 00fd8c05cda8bdb3b3667a74674ebd0593a7cced..f0aefb8c2ac231785920b838682624c2deadc0c6 100644
--- a/Source/modules/serviceworkers/Response.idl
+++ b/Source/modules/serviceworkers/Response.idl
@@ -11,6 +11,7 @@ enum ResponseType { "basic", "cors", "default", "error", "opaque" };
// and URLSearchParams response bodies.
Constructor(ScalarValueString body, optional Dictionary responseInitDict),
Constructor(Blob? body, optional Dictionary responseInitDict),
+ ConstructorCallWith=ExecutionContext,
RuntimeEnabled=ServiceWorker,
Exposed=ServiceWorker,
RaisesException=Constructor,
@@ -22,5 +23,6 @@ enum ResponseType { "basic", "cors", "default", "error", "opaque" };
readonly attribute unsigned short status;
readonly attribute ByteString statusText;
readonly attribute Headers headers;
- [CallWith=ExecutionContext] readonly attribute FetchBodyStream body;
};
+
+Response implements Body;

Powered by Google App Engine
This is Rietveld 408576698