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

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

Issue 2227553002: Support mojo connections between unrelated peer processes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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
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);

Powered by Google App Engine
This is Rietveld 408576698