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

Unified Diff: Source/modules/serviceworkers/CacheStorage.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 | « Source/modules/serviceworkers/Cache.idl ('k') | Source/modules/serviceworkers/ServiceWorkerClients.idl » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/serviceworkers/CacheStorage.idl
diff --git a/Source/modules/serviceworkers/CacheStorage.idl b/Source/modules/serviceworkers/CacheStorage.idl
index b46f7b8576395f3f0734dbe65e77330a13b47c0d..a055fdb6541685a23d7a6779d6268cd69047b94f 100644
--- a/Source/modules/serviceworkers/CacheStorage.idl
+++ b/Source/modules/serviceworkers/CacheStorage.idl
@@ -9,10 +9,10 @@
RuntimeEnabled=ServiceWorkerCache,
TypeChecking=Interface,
] interface CacheStorage {
- [CallWith=ScriptState] Promise has(USVString cacheName);
- [CallWith=ScriptState] Promise open(USVString cacheName);
- [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise delete(USVString cacheName);
- [CallWith=ScriptState] Promise keys();
+ [CallWith=ScriptState] Promise<boolean> has(USVString cacheName);
+ [CallWith=ScriptState] Promise<Cache> open(USVString cacheName);
+ [CallWith=ScriptState, ImplementedAs=deleteFunction] Promise<boolean> delete(USVString cacheName);
+ [CallWith=ScriptState] Promise<sequence<DOMString>> keys();
// FIXME: From https://github.com/slightlyoff/ServiceWorker/issues/372 and the updated
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#cache-storage ,
// we have yet to implement match().
« no previous file with comments | « Source/modules/serviceworkers/Cache.idl ('k') | Source/modules/serviceworkers/ServiceWorkerClients.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698