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

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
« no previous file with comments | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/core.h
diff --git a/mojo/edk/system/core.h b/mojo/edk/system/core.h
index 9b109412868eaadb78ddd88e2f3fa3efe3db1f39..dc635a05608280482fa4b8e7a9e8961854836968 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. 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.
+ ScopedMessagePipeHandle ConnectToPeerProcess(
+ ScopedPlatformHandle pipe_handle);
+
// Called in a child process exactly once during early initialization.
void InitChild(ScopedPlatformHandle platform_handle);
« no previous file with comments | « mojo/edk/embedder/embedder.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698