ipc.mojom 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  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
  3. // found in the LICENSE file.
  4. module IPC.mojom;
  5. import "mojo/public/interfaces/bindings/native_struct.mojom";
  6. import "mojo/public/mojom/base/generic_pending_associated_receiver.mojom";
  7. // Typemapped such that arbitrarily large IPC::Message objects can be sent and
  8. // received with minimal copying.
  9. struct Message {
  10. array<uint8> bytes;
  11. array<mojo.native.SerializedHandle>? handles;
  12. };
  13. interface Channel {
  14. // Informs the remote end of this client's PID. Must be called exactly once,
  15. // before any calls to Receive() below.
  16. SetPeerPid(int32 pid);
  17. // Transmits a classical Chrome IPC message.
  18. [UnlimitedSize]
  19. Receive(Message message);
  20. // Requests a Channel-associated interface.
  21. GetAssociatedInterface(
  22. mojo_base.mojom.GenericPendingAssociatedReceiver receiver);
  23. };
  24. // A strictly nominal interface used to identify Channel bootstrap requests.
  25. // This is only used in `AgentSchedulingGroup` initialization.
  26. interface ChannelBootstrap {};