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

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

Issue 1008533005: Initial implementation of stashed message ports, blink side (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: rebase Created 5 years, 7 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/ServiceWorkerGlobalScope.idl
diff --git a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl
index af5b9cf3817a4e0267d25ec66db743978e5ff57a..47321c9258567f33efb0223582658175f61884f5 100644
--- a/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl
+++ b/Source/modules/serviceworkers/ServiceWorkerGlobalScope.idl
@@ -40,6 +40,10 @@
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, RaisesException] Promise<Response> fetch(RequestInfo input, optional Dictionary init);
[RaisesException] void close();

Powered by Google App Engine
This is Rietveld 408576698