Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1443)

Unified Diff: ipc/ipc.mojom

Issue 2163633003: Support early associated interface binding on ChannelMojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@explicit-channel-ipc-task-runner
Patch Set: . Created 4 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | ipc/ipc_channel.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/ipc.mojom
diff --git a/ipc/ipc.mojom b/ipc/ipc.mojom
index 28d73fbea63bed5aca12cb544c25c8ee0eb801fd..2896fc2ca224dd46e0a5dc4e0ddd827cb7a90e42 100644
--- a/ipc/ipc.mojom
+++ b/ipc/ipc.mojom
@@ -22,17 +22,13 @@ struct SerializedHandle {
interface GenericInterface {};
interface Channel {
+ // Informs the remote end of this client's PID. Must be called exactly once,
+ // before any calls to Receive() below.
+ SetPeerPid(int32 pid);
+
+ // Transmits a classical Chrome IPC message.
Receive(array<uint8> data, array<SerializedHandle>? handles);
+ // Requests a Channel-associated interface.
GetAssociatedInterface(string name, associated GenericInterface& request);
};
-
-// 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);
-};
« no previous file with comments | « no previous file | ipc/ipc_channel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698