Index: Source/modules/serviceworkers/StashedPortCollection.idl |
diff --git a/Source/modules/serviceworkers/StashedPortCollection.idl b/Source/modules/serviceworkers/StashedPortCollection.idl |
new file mode 100644 |
index 0000000000000000000000000000000000000000..1f56f02484388dcf62ff52e81cd7bd5a1428b478 |
--- /dev/null |
+++ b/Source/modules/serviceworkers/StashedPortCollection.idl |
@@ -0,0 +1,15 @@ |
+// Copyright 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// 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. |
+[ |
+ Exposed=ServiceWorker, |
+ RuntimeEnabled=NavigatorConnect, |
+ TypeChecking=Interface, |
+] interface StashedPortCollection : EventTarget { |
+ [CallWith=ScriptState] StashedMessagePort add(USVString name, MessagePort port); |
+ // Promise<sequence<StashedMessagePort>> match(UVString name); |
+ attribute EventHandler onmessage; |
+}; |