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

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

Issue 723643002: Service Worker: Include promise types in IDL (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 6 years, 1 month 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 | « no previous file | Source/modules/serviceworkers/Cache.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/Body.idl
diff --git a/Source/modules/serviceworkers/Body.idl b/Source/modules/serviceworkers/Body.idl
index 32b58835b7745cb7c9f74fcde732efc47918b9b7..7deca8e3f02bef986e56ead0f218cab61d9d4374 100644
--- a/Source/modules/serviceworkers/Body.idl
+++ b/Source/modules/serviceworkers/Body.idl
@@ -3,6 +3,7 @@
// found in the LICENSE file.
// http://fetch.spec.whatwg.org/#body
+typedef object JSON;
[
RuntimeEnabled=ServiceWorker,
Exposed=ServiceWorker,
@@ -12,11 +13,11 @@
TypeChecking=Interface,
] interface Body {
readonly attribute boolean bodyUsed;
- [CallWith=ScriptState] Promise arrayBuffer();
- [CallWith=ScriptState] Promise blob();
- [CallWith=ScriptState] Promise json();
- [CallWith=ScriptState] Promise text();
+ [CallWith=ScriptState] Promise<ArrayBuffer> arrayBuffer();
+ [CallWith=ScriptState] Promise<Blob> blob();
+ [CallWith=ScriptState] Promise<JSON> json();
+ [CallWith=ScriptState] Promise<USVString> text();
// Still to be implemented.
- // [CallWith=ScriptState] Promise formData();
+ // [CallWith=ScriptState] Promise<FormData> formData();
};
« no previous file with comments | « no previous file | Source/modules/serviceworkers/Cache.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698