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 // NOTE: This MUST match the value of MSG_ROUTING_NONE in src/ipc/ipc_message.h. |
| 8 const int32 kRoutingIdNone = -2; |
| 9 |
7 struct SerializedHandle { | 10 struct SerializedHandle { |
8 handle the_handle; | 11 handle the_handle; |
9 | 12 |
10 enum Type { | 13 enum Type { |
11 MOJO_HANDLE, | 14 MOJO_HANDLE, |
12 PLATFORM_FILE, | 15 PLATFORM_FILE, |
13 WIN_HANDLE, | 16 WIN_HANDLE, |
14 MACH_PORT, | 17 MACH_PORT, |
15 }; | 18 }; |
16 | 19 |
(...skipping 11 matching lines...) Expand all Loading... |
28 | 31 |
29 // Transmits a classical Chrome IPC message. | 32 // Transmits a classical Chrome IPC message. |
30 Receive(array<uint8> data, array<SerializedHandle>? handles); | 33 Receive(array<uint8> data, array<SerializedHandle>? handles); |
31 | 34 |
32 // Requests a Channel-associated interface. | 35 // Requests a Channel-associated interface. |
33 GetAssociatedInterface(string name, associated GenericInterface& request); | 36 GetAssociatedInterface(string name, associated GenericInterface& request); |
34 }; | 37 }; |
35 | 38 |
36 // A strictly nominal interface used to identify Channel bootstrap requests. | 39 // A strictly nominal interface used to identify Channel bootstrap requests. |
37 interface ChannelBootstrap {}; | 40 interface ChannelBootstrap {}; |
OLD | NEW |