| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 module mojo; | 5 module js; |
| 6 | 6 |
| 7 [Client=PingPongClient] | 7 [Client=PingPongClient] |
| 8 interface PingPongService { | 8 interface PingPongService { |
| 9 // Typically calls PingPongClient::Pong(ping_value + 1) | 9 // Typically calls PingPongClient::Pong(ping_value + 1) |
| 10 Ping(uint16 ping_value); | 10 Ping(uint16 ping_value); |
| 11 | 11 |
| 12 // Ping the PingPongService at |url| |count| times and return true | 12 // Ping the PingPongService at |url| |count| times and return true |
| 13 // after the final Pong() is received. | 13 // after the final Pong() is received. |
| 14 PingTarget(string url, uint16 count) => (bool ok); | 14 PingTarget(string url, uint16 count) => (bool ok); |
| 15 | 15 |
| 16 // Make it stop. | 16 // Make it stop. |
| 17 Quit(); | 17 Quit(); |
| 18 }; | 18 }; |
| 19 | 19 |
| 20 interface PingPongClient { | 20 interface PingPongClient { |
| 21 Pong(uint16 pong_value); | 21 Pong(uint16 pong_value); |
| 22 }; | 22 }; |
| OLD | NEW |