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

Side by Side Diff: components/webmessaging/public/interfaces/broadcast_channel.mojom

Issue 2004643002: Implement BroadcastChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase and slightly improved tests Created 4 years, 6 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 module webmessaging.mojom;
6
7 import "url/mojo/origin.mojom";
8
9 interface BroadcastChannelClient {
10 // Messages are passed as SerializedScriptValue.
11 OnMessage(string message);
12 };
13
14 interface BroadcastChannelService {
15 // Connect to the channel identified by the |origin| and |name|. Messages can
16 // be sent to the channel using |sender|, and messages to the channel will be
17 // received by |receiver|.
18 // All connections to channels made from the same event loop should be made
19 // through the same BroadcastChannelService to ensure correct ordering of
20 // messages.
21 Subscribe(url.mojom.Origin origin, string name, associated BroadcastChannelCli ent client);
Ken Rockot(use gerrit already) 2016/06/01 16:07:50 Sorry, I think I may have lost track of exactly wh
Marijn Kruisselbrink 2016/06/01 21:37:12 No, that's not the case I'm concerned about. What
Ken Rockot(use gerrit already) 2016/06/01 21:47:08 Oh, right. I guess it's really the same thing, but
Marijn Kruisselbrink 2016/06/01 22:07:58 Since (with the implementation that only one Broad
22 Broadcast(url.mojom.Origin origin, string name, string message);
23 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698