Chromium Code Reviews| OLD | NEW |
|---|---|
| (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 { | |
|
dcheng
2016/06/30 08:23:11
Nit: can we add some sort of interface-level comme
Marijn Kruisselbrink
2016/06/30 17:21:56
Added some explicit comments to this interface.
| |
| 10 // Messages are passed as SerializedScriptValue. | |
| 11 OnMessage(string message); | |
| 12 }; | |
| 13 | |
| 14 interface BroadcastChannelProvider { | |
|
dcheng
2016/06/30 08:23:12
Is there expected to be one of these in the browse
Marijn Kruisselbrink
2016/06/30 17:21:56
A content::BrowserContext (chrome::Profile) consis
| |
| 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 BroadcastChannelProvider to ensure correct ordering of | |
| 20 // messages. | |
| 21 ConnectToChannel(url.mojom.Origin origin, string name, | |
| 22 associated BroadcastChannelClient receiver, | |
| 23 associated BroadcastChannelClient& sender); | |
| 24 }; | |
| OLD | NEW |