OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 arc; | 5 module arc; |
6 | 6 |
7 import "app.mojom"; | 7 import "app.mojom"; |
8 import "auth.mojom"; | 8 import "auth.mojom"; |
9 import "clipboard.mojom"; | 9 import "clipboard.mojom"; |
10 import "input.mojom"; | 10 import "input.mojom"; |
| 11 import "net.mojom"; |
11 import "notifications.mojom"; | 12 import "notifications.mojom"; |
12 import "power.mojom"; | 13 import "power.mojom"; |
13 import "process.mojom"; | 14 import "process.mojom"; |
14 import "settings.mojom"; | 15 import "settings.mojom"; |
15 | 16 |
16 interface ArcBridgeHost { | 17 interface ArcBridgeHost { |
17 // Keep the entries alphabetical. In order to do so without breaking | 18 // Keep the entries alphabetical. In order to do so without breaking |
18 // compatibility with the ARC instance, explicitly assign each interface a | 19 // compatibility with the ARC instance, explicitly assign each interface a |
19 // unique ordinal. | 20 // unique ordinal. |
20 | 21 |
21 // Notifies Chrome that the AppInstance interface is ready. | 22 // Notifies Chrome that the AppInstance interface is ready. |
22 OnAppInstanceReady@100(AppInstance instance_ptr); | 23 OnAppInstanceReady@100(AppInstance instance_ptr); |
23 | 24 |
24 // Notifies Chrome that the AuthInstance interface is ready. | 25 // Notifies Chrome that the AuthInstance interface is ready. |
25 [MinVersion=1] OnAuthInstanceReady@106(AuthInstance instance_ptr); | 26 [MinVersion=1] OnAuthInstanceReady@106(AuthInstance instance_ptr); |
26 | 27 |
27 // Notifies Chrome that the ClipboardInstance interface is ready. | 28 // Notifies Chrome that the ClipboardInstance interface is ready. |
28 [MinVersion=2] OnClipboardInstanceReady@109(ClipboardInstance instance_ptr); | 29 [MinVersion=2] OnClipboardInstanceReady@109(ClipboardInstance instance_ptr); |
29 | 30 |
30 // Notifies Chrome that the InputInstnace interface is ready. | 31 // Notifies Chrome that the InputInstnace interface is ready. |
31 OnInputInstanceReady@101(InputInstance instance_ptr); | 32 OnInputInstanceReady@101(InputInstance instance_ptr); |
32 | 33 |
| 34 // Notifies Chrome that the NetInstance interface is ready. |
| 35 [MinVersion=3] OnNetInstanceReady@108(NetInstance instance_ptr); |
| 36 |
33 // Notifies Chrome that the NotificationsInstance interface is ready. | 37 // Notifies Chrome that the NotificationsInstance interface is ready. |
34 OnNotificationsInstanceReady@102(NotificationsInstance instance_ptr); | 38 OnNotificationsInstanceReady@102(NotificationsInstance instance_ptr); |
35 | 39 |
36 // Notifies Chrome that the PowerInstance interface is ready. | 40 // Notifies Chrome that the PowerInstance interface is ready. |
37 OnPowerInstanceReady@103(PowerInstance instance_ptr); | 41 OnPowerInstanceReady@103(PowerInstance instance_ptr); |
38 | 42 |
39 // Notifies Chrome that the ProcessInstance interface is ready. | 43 // Notifies Chrome that the ProcessInstance interface is ready. |
40 OnProcessInstanceReady@104(ProcessInstance instance_ptr); | 44 OnProcessInstanceReady@104(ProcessInstance instance_ptr); |
41 | 45 |
42 // Notifies Chrome that the SettingsInstance interface is ready. | 46 // Notifies Chrome that the SettingsInstance interface is ready. |
43 OnSettingsInstanceReady@105(SettingsInstance instance_ptr); | 47 OnSettingsInstanceReady@105(SettingsInstance instance_ptr); |
44 }; | 48 }; |
45 | 49 |
46 interface ArcBridgeInstance { | 50 interface ArcBridgeInstance { |
47 // Establishes full-duplex communication with the host. | 51 // Establishes full-duplex communication with the host. |
48 // |host_ptr| is the MessagePipe endpoint that is bound to the | 52 // |host_ptr| is the MessagePipe endpoint that is bound to the |
49 // ArcBridgeHostPtr binding. | 53 // ArcBridgeHostPtr binding. |
50 Init@0(ArcBridgeHost host_ptr); | 54 Init@0(ArcBridgeHost host_ptr); |
51 }; | 55 }; |
OLD | NEW |