diff options
Diffstat (limited to 'chromium/ipc/mojo/ipc.mojom')
-rw-r--r-- | chromium/ipc/mojo/ipc.mojom | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/chromium/ipc/mojo/ipc.mojom b/chromium/ipc/mojo/ipc.mojom new file mode 100644 index 00000000000..d15a23c3e95 --- /dev/null +++ b/chromium/ipc/mojo/ipc.mojom @@ -0,0 +1,31 @@ +// Copyright 2016 The Chromium Authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +module IPC.mojom; + +struct SerializedHandle { + handle the_handle; + + enum Type { + MOJO_HANDLE, + WIN_HANDLE, + MACH_PORT, + }; + + Type type; +}; + +interface Channel { + Receive(array<uint8> data, array<SerializedHandle>? handles); +}; + +// An interface for connecting a pair of Channel interfaces representing a +// bidirectional IPC channel. +interface Bootstrap { + // Initializes a Chrome IPC channel over |to_client_channel| and + // |to_server_channel|. Each side also sends its PID to the other side. + Init(associated Channel& to_client_channel, + associated Channel to_server_channel, + int32 pid) => (int32 pid); +}; |