| 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 // NOTE: This MUST match the value of MSG_ROUTING_NONE in src/ipc/ipc_message.h. | 9 // NOTE: This MUST match the value of MSG_ROUTING_NONE in src/ipc/ipc_message.h. |
| 8 const int32 kRoutingIdNone = -2; | 10 const int32 kRoutingIdNone = -2; |
| 9 | 11 |
| 10 struct SerializedHandle { | 12 struct SerializedHandle { |
| 11 handle the_handle; | 13 handle the_handle; |
| 12 | 14 |
| 13 enum Type { | 15 enum Type { |
| 14 MOJO_HANDLE, | 16 MOJO_HANDLE, |
| 15 PLATFORM_FILE, | 17 PLATFORM_FILE, |
| 16 WIN_HANDLE, | 18 WIN_HANDLE, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 27 interface Channel { | 29 interface Channel { |
| 28 // Informs the remote end of this client's PID. Must be called exactly once, | 30 // Informs the remote end of this client's PID. Must be called exactly once, |
| 29 // before any calls to Receive() below. | 31 // before any calls to Receive() below. |
| 30 SetPeerPid(int32 pid); | 32 SetPeerPid(int32 pid); |
| 31 | 33 |
| 32 // Transmits a classical Chrome IPC message. | 34 // Transmits a classical Chrome IPC message. |
| 33 Receive(array<uint8> data, array<SerializedHandle>? handles); | 35 Receive(array<uint8> data, array<SerializedHandle>? handles); |
| 34 | 36 |
| 35 // Requests a Channel-associated interface. | 37 // Requests a Channel-associated interface. |
| 36 GetAssociatedInterface(string name, associated GenericInterface& request); | 38 GetAssociatedInterface(string name, associated GenericInterface& request); |
| 39 |
| 40 // Signals |event| immediately upon receipt. Useful for synchronizing |
| 41 // arbitrary clients against the Channel's message FIFO. |
| 42 SignalEvent(mojo.common.mojom.Event event); |
| 37 }; | 43 }; |
| 38 | 44 |
| 39 // A strictly nominal interface used to identify Channel bootstrap requests. | 45 // A strictly nominal interface used to identify Channel bootstrap requests. |
| 40 interface ChannelBootstrap {}; | 46 interface ChannelBootstrap {}; |
| OLD | NEW |