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

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

Issue 2019973002: [mojo-edk] Bind a child token to child launches and port reservations. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 6 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_unittest.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 5e061f1ebc58eeb637cd43f14afcec70543cfab7..8e537dbb0d219d54a535a148f9b6ce1eaf603f61 100644
--- a/mojo/edk/system/core.h
+++ b/mojo/edk/system/core.h
@@ -53,7 +53,11 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
// Called in the parent process any time a new child is launched.
void AddChild(base::ProcessHandle process_handle,
- ScopedPlatformHandle platform_handle);
+ ScopedPlatformHandle platform_handle,
+ const std::string& child_token);
+
+ // Called in the parent process when a child process fails to launch.
+ void ChildLaunchFailed(const std::string& child_token);
// Called in a child process exactly once during early initialization.
void InitChild(ScopedPlatformHandle platform_handle);
@@ -66,7 +70,8 @@ class MOJO_SYSTEM_IMPL_EXPORT Core {
// Creates a message pipe endpoint associated with |token|, which a child
// holding the token can later locate and connect to.
- ScopedMessagePipeHandle CreateParentMessagePipe(const std::string& token);
+ ScopedMessagePipeHandle CreateParentMessagePipe(
+ const std::string& token, const std::string& child_token);
// Creates a message pipe endpoint and connects it to a pipe the parent has
// associated with |token|.
« no previous file with comments | « mojo/edk/embedder/embedder_unittest.cc ('k') | mojo/edk/system/core.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698