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

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

Issue 2004643002: Implement BroadcastChannel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « components/webmessaging/OWNERS ('k') | components/webmessaging/broadcast_channel_service.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 interface BroadcastChannelClient {
8 // Messages are passed as SerializedScriptValue.
9 OnMessage(string message);
10 };
11
12 interface BroadcastChannelService {
13 // Connect to the channel identified by the |origin| and |name|. Messages can
14 // be sent to the channel using |sender|, and messages to the channel will be
15 // received by |receiver|.
16 // All connections to channels made from the same event loop should be made
17 // through the same BroadcastChannelService to ensure correct ordering of
18 // messages.
19 // TODO(mek): Use correct type to represent origin.
20 ConnectToChannel(string origin, string name, associated BroadcastChannelClient receiver, associated BroadcastChannelClient& sender);
Ken Rockot(use gerrit already) 2016/05/21 00:01:18 It seems like we could simplify this by avoiding a
Marijn Kruisselbrink 2016/05/21 00:34:21 It would be possible to have a mojo API that is mo
Marijn Kruisselbrink 2016/05/21 00:36:15 And maybe I should just implement it, to see just
Marijn Kruisselbrink 2016/05/31 23:40:53 Okay, I ended up implementing something with a moj
21 };
OLDNEW
« no previous file with comments | « components/webmessaging/OWNERS ('k') | components/webmessaging/broadcast_channel_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698