Index: mojo/edk/system/core.h |
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h |
index 9b109412868eaadb78ddd88e2f3fa3efe3db1f39..6a49978536da7514cc2c0071bb50a41c1ec9ad25 100644 |
--- a/mojo/edk/system/core.h |
+++ b/mojo/edk/system/core.h |
@@ -62,6 +62,13 @@ class MOJO_SYSTEM_IMPL_EXPORT Core { |
// Called in the parent process when a child process fails to launch. |
void ChildLaunchFailed(const std::string& child_token); |
+ // Called to connect to a peer process. A process is a peer when there exists |
+ // no common ancestor 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. |
+ ScopedMessagePipeHandle ConnectToPeerProcess( |
+ ScopedPlatformHandle pipe_handle); |
+ |
// Called in a child process exactly once during early initialization. |
void InitChild(ScopedPlatformHandle platform_handle); |