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

Unified Diff: Source/modules/serviceworkers/StashedPortCollection.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/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;
+};
« no previous file with comments | « Source/modules/serviceworkers/StashedPortCollection.cpp ('k') | Source/web/ServiceWorkerGlobalScopeClientImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698