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

Unified Diff: Source/modules/serviceworkers/Body.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/Body.idl
diff --git a/Source/modules/serviceworkers/FetchBodyStream.idl b/Source/modules/serviceworkers/Body.idl
similarity index 50%
rename from Source/modules/serviceworkers/FetchBodyStream.idl
rename to Source/modules/serviceworkers/Body.idl
index 5e5bf66364f0996466af1439635dcee15ab674ca..bb065791d04e55f218b92ad03f7326e013e3e5db 100644
--- a/Source/modules/serviceworkers/FetchBodyStream.idl
+++ b/Source/modules/serviceworkers/Body.idl
@@ -2,20 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// http://fetch.spec.whatwg.org/#fetchbodystream
+// http://fetch.spec.whatwg.org/#body
[
RuntimeEnabled=ServiceWorker,
Exposed=ServiceWorker,
NoInterfaceObject,
ActiveDOMObject,
GarbageCollected,
-] interface FetchBodyStream {
- [CallWith=ScriptState] Promise asArrayBuffer();
- [CallWith=ScriptState] Promise asBlob();
- [CallWith=ScriptState] Promise asJSON();
- [CallWith=ScriptState] Promise asText();
+] interface Body {
+ readonly attribute boolean bodyUsed;
+ [CallWith=ScriptState] Promise arrayBuffer();
+ [CallWith=ScriptState] Promise blob();
+ [CallWith=ScriptState] Promise json();
+ [CallWith=ScriptState] Promise text();
// Still to be implemented.
- // [CallWith=ScriptState] Promise asFormData();
+ // [CallWith=ScriptState] Promise formData();
};
-

Powered by Google App Engine
This is Rietveld 408576698