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

Side by Side Diff: ipc/ipc_test.mojom

Issue 2455823002: Support generic synchronization against an IPC::Channel (Closed)
Patch Set: . Created 4 years, 1 month 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 | « ipc/ipc_message_pipe_reader.cc ('k') | ipc/ipc_test_base.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 };
OLDNEW
« no previous file with comments | « ipc/ipc_message_pipe_reader.cc ('k') | ipc/ipc_test_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698