| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 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 IPC.mojom; | 5 module IPC.mojom; |
| 6 | 6 |
| 7 import "mojo/common/event.mojom"; |
| 8 |
| 7 interface SimpleTestDriver { | 9 interface SimpleTestDriver { |
| 8 ExpectValue(int32 value); | 10 ExpectValue(int32 value); |
| 9 | 11 |
| 10 [Sync] | 12 [Sync] |
| 11 GetExpectedValue() => (int32 value); | 13 GetExpectedValue() => (int32 value); |
| 12 | 14 |
| 13 [Sync] | 15 [Sync] |
| 14 RequestValue() => (int32 value); | 16 RequestValue() => (int32 value); |
| 15 | 17 |
| 16 RequestQuit() => (); | 18 RequestQuit() => (); |
| 17 }; | 19 }; |
| 18 | 20 |
| 19 interface SimpleTestClient { | 21 interface SimpleTestClient { |
| 20 [Sync] | 22 [Sync] |
| 21 RequestValue() => (int32 value); | 23 RequestValue() => (int32 value); |
| 22 }; | 24 }; |
| 23 | 25 |
| 24 interface PingReceiver { | 26 interface PingReceiver { |
| 25 Ping() => (); | 27 Ping() => (); |
| 26 }; | 28 }; |
| 27 | 29 |
| 28 interface IndirectTestDriver { | 30 interface IndirectTestDriver { |
| 29 GetPingReceiver(associated PingReceiver& request); | 31 GetPingReceiver(associated PingReceiver& request); |
| 30 }; | 32 }; |
| 33 |
| 34 interface SynchronizationTestClient { |
| 35 OnTokenReceived(string token) => (); |
| 36 }; |
| 37 |
| 38 interface SynchronizationTestSender { |
| 39 SendToken(SynchronizationTestReceiver receiver, |
| 40 SynchronizationTestClient client); |
| 41 Quit(); |
| 42 }; |
| 43 |
| 44 interface SynchronizationTestReceiver { |
| 45 ReceiveToken(string token, |
| 46 SynchronizationTestClient client, |
| 47 mojo.common.mojom.Event& event); |
| 48 }; |
| OLD | NEW |