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

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

Issue 1685183004: Bootstrap Mojo IPC independent of Chrome IPC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: and fix posix Created 4 years, 10 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 0e08a8c3ae27c5074023c460519548a305f0f36f..d87f51117bd09731d10d200324d3155ca90e8789 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -50,9 +50,26 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
void AddChild(base::ProcessHandle process_handle,
ScopedPlatformHandle platform_handle);
- // Called in a child process exactly once during early initialization.
+ // Called in the parent process any time a new child is launched. |secret|
+ // must be received from the child process before normal handshake can begin.
+ //
+ // NOTE: This should be used only on Windows.
+ void AddChild(base::ProcessHandle process_handle,
+ ScopedPlatformHandle platform_handle,
+ const std::string& secret);
+
+ // Called in a child process exactly once during early initialization to
+ // establish a connection to the parent process.
void InitChild(ScopedPlatformHandle platform_handle);
+ // Called in a child process exactly once during early initialization to
+ // establish a connection to the parent process. |secret| is transmitted
+ // before beginning normal handshake.
+ //
+ // NOTE: This should be used only on Windows.
+ void InitChild(ScopedPlatformHandle platform_handle,
+ const std::string& secret);
+
// Creates a message pipe endpoint connected to an endpoint in a remote
// embedder. |platform_handle| is used as a channel to negotiate the
// connection.

Powered by Google App Engine
This is Rietveld 408576698