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

Unified Diff: modules/serviceworkers/ServiceWorkerGlobalScope.idl

Issue 1660113002: Updated to Chrome 45 (2454) moved from SVN to git. Base URL: https://github.com/dart-lang/webcore.git@roll_45
Patch Set: Created 4 years, 11 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/ServiceWorkerGlobalScope.idl
diff --git a/modules/serviceworkers/ServiceWorkerGlobalScope.idl b/modules/serviceworkers/ServiceWorkerGlobalScope.idl
index 10d9a9b052911823427667cb81c3b67cd9c19375..2319e5b5b87d62533ba13614881707613fb8dac7 100644
--- a/modules/serviceworkers/ServiceWorkerGlobalScope.idl
+++ b/modules/serviceworkers/ServiceWorkerGlobalScope.idl
@@ -29,24 +29,28 @@
*/
// https://slightlyoff.github.io/ServiceWorker/spec/service_worker/index.html#service-worker-global-scope-interface
+
[
Exposed=ServiceWorker,
Global=(Worker,ServiceWorker),
- RuntimeEnabled=ServiceWorker,
+ TypeChecking=Interface,
] interface ServiceWorkerGlobalScope : WorkerGlobalScope {
- readonly attribute ServiceWorkerClients clients;
- [CallWith=ExecutionContext, Unforgeable] readonly attribute ScalarValueString scope;
- [CallWith=ExecutionContext, Unforgeable, RuntimeEnabled=ServiceWorkerOnFetch] readonly attribute CacheStorage caches;
+ readonly attribute Clients clients;
+ readonly attribute ServiceWorkerRegistration registration;
+
+ // https://github.com/mkruisselbrink/navigator-connect/blob/gh-pages/docs/api-idea.md#persisted-messageports
+ // TODO(mek): Link to actual spec when this is added there, and decide if this is the right place for this.
+ [RuntimeEnabled=NavigatorConnect] readonly attribute StashedPortCollection ports;
- [CallWith=ScriptState] Promise fetch(DOMString request, optional Dictionary requestInitDict);
- [CallWith=ScriptState] Promise fetch(Request request, optional Dictionary requestInitDict);
+ [CallWith=ScriptState, RaisesException] Promise<Response> fetch(RequestInfo input, optional Dictionary init);
[RaisesException] void close();
+ [CallWith=ScriptState] Promise<void> skipWaiting();
+
attribute EventHandler onactivate;
- [RuntimeEnabled=ServiceWorkerOnFetch] attribute EventHandler onfetch;
+ attribute EventHandler onfetch;
attribute EventHandler oninstall;
attribute EventHandler onmessage;
- [RuntimeEnabled=BackgroundSync] attribute EventHandler onsync;
};
« no previous file with comments | « modules/serviceworkers/ServiceWorkerContainer.idl ('k') | modules/serviceworkers/ServiceWorkerMessageEvent.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698