Index: mojo/edk/embedder/embedder.h |
diff --git a/mojo/edk/embedder/embedder.h b/mojo/edk/embedder/embedder.h |
index e4a8420e8050aa25228aea7f99cfbb96b31aceb9..8cb44a119cba3351179f0b53a689a744c9108de6 100644 |
--- a/mojo/edk/embedder/embedder.h |
+++ b/mojo/edk/embedder/embedder.h |
@@ -70,6 +70,13 @@ MOJO_SYSTEM_IMPL_EXPORT void SetParentPipeHandle(ScopedPlatformHandle pipe); |
// PlatformChannelPair for details. |
MOJO_SYSTEM_IMPL_EXPORT void SetParentPipeHandleFromCommandLine(); |
+// Called to connect to a peer process. This should be called only if there |
+// is no common ancestor for the processes involved within this mojo system. |
+// Both processes must call this function, each passing one end of a platform |
+// channel. This returns one end of a message pipe to each process. |
+MOJO_SYSTEM_IMPL_EXPORT ScopedMessagePipeHandle |
+ConnectToPeerProcess(ScopedPlatformHandle pipe); |
+ |
// Must be called first, or just after setting configuration parameters, to |
// initialize the (global, singleton) system. |
MOJO_SYSTEM_IMPL_EXPORT void Init(); |