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

Unified Diff: modules/serviceworkers/ServiceWorkerContainer.idl

Issue 540533002: Roll IDL to Dartium37 (r181268) (Closed) Base URL: https://dart.googlecode.com/svn/third_party/WebCore
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: modules/serviceworkers/ServiceWorkerContainer.idl
diff --git a/modules/serviceworkers/ServiceWorkerContainer.idl b/modules/serviceworkers/ServiceWorkerContainer.idl
index c6ab688c54e4466bab1267fcdb754c3126abf415..9f8a3f6bd2c2f430ec0c72eb95e73818edaa12f6 100644
--- a/modules/serviceworkers/ServiceWorkerContainer.idl
+++ b/modules/serviceworkers/ServiceWorkerContainer.idl
@@ -28,11 +28,17 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-container-interface
[
- RuntimeEnabled=ServiceWorker,
- NoInterfaceObject
+ RuntimeEnabled=ServiceWorker
] interface ServiceWorkerContainer {
- [CallWith=ExecutionContext, ImplementedAs=registerServiceWorker] Promise
- register(DOMString url, optional Dictionary options);
- [CallWith=ExecutionContext, ImplementedAs=unregisterServiceWorker] Promise unregister(optional DOMString scope);
+ [Unforgeable] readonly attribute ServiceWorker active;
+ [Unforgeable] readonly attribute ServiceWorker controller;
+ [Unforgeable] readonly attribute ServiceWorker installing;
+ [Unforgeable] readonly attribute ServiceWorker waiting;
+
+ [CallWith=ScriptState] readonly attribute Promise ready;
+
+ [CallWith=ScriptState, ImplementedAs=registerServiceWorker] Promise register(ScalarValueString url, optional Dictionary options);
+ [CallWith=ScriptState, ImplementedAs=unregisterServiceWorker] Promise unregister(ScalarValueString scope);
};
« no previous file with comments | « modules/serviceworkers/ServiceWorkerClients.idl ('k') | modules/serviceworkers/ServiceWorkerGlobalScope.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698