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

Unified Diff: mojo/edk/system/broker_messages.h

Issue 1558643002: Fix Mojo broker crash on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | mojo/edk/system/broker_state.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/broker_messages.h
diff --git a/mojo/edk/system/broker_messages.h b/mojo/edk/system/broker_messages.h
index 0ce0960d685b9fadc8e0cb5c1c0c7adf936bfd2c..13fe98014c0df407bbf7abaa056fffec0e720601 100644
--- a/mojo/edk/system/broker_messages.h
+++ b/mojo/edk/system/broker_messages.h
@@ -53,12 +53,31 @@ const uint64_t kBrokerRouteId = 1;
// They are sent over RawChannel.
enum MultiplexMessages {
// Messages from child to parent.
+
+ // Tells the parent that the given pipe id has been bound to a
+ // MessagePipeDispatcher in the child process. The parent will then respond
+ // with either PEER_PIPE_CONNECTED or PEER_DIED when the other side is also
+ // bound.
CONNECT_MESSAGE_PIPE = 0,
+ // Tells the parent to remove its bookkeeping for the given peer id since
+ // another MessagePipeDispatcher has connected to the pipe in the same
+ // process.
CANCEL_CONNECT_MESSAGE_PIPE,
+
// Messages from parent to child.
+
+ // Tells the child to open a channel to a given process. This will be followed
+ // by a PEER_PIPE_CONNECTED connecting a message pipe from the child process
+ // to the given process over the new channel.
CONNECT_TO_PROCESS,
+
+ // Connect a given message pipe to another process.
PEER_PIPE_CONNECTED,
+
+ // Informs the child that the other end of the message pipe is in a process
+ // that died.
+ PEER_DIED,
};
struct ConnectMessagePipeMessage {
@@ -79,6 +98,11 @@ struct PeerPipeConnectedMessage {
base::ProcessId process_id;
};
+struct PeerDiedMessage {
+ MultiplexMessages type; // PEER_DIED
+ uint64_t pipe_id;
+};
+
} // namespace edk
} // namespace mojo
« no previous file with comments | « no previous file | mojo/edk/system/broker_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698