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

Unified Diff: mojo/edk/embedder/embedder.cc

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/embedder/embedder.cc
diff --git a/mojo/edk/embedder/embedder.cc b/mojo/edk/embedder/embedder.cc
index fa4e6ea62a25d873cf14486eb513354d8510680a..8ea48d6b23ac0fe77366ea11834b6317e67970b0 100644
--- a/mojo/edk/embedder/embedder.cc
+++ b/mojo/edk/embedder/embedder.cc
@@ -49,11 +49,23 @@ void ChildProcessLaunched(base::ProcessHandle child_process,
internal::g_core->AddChild(child_process, std::move(server_pipe));
}
+void ChildProcessLaunched(base::ProcessHandle child_process,
+ ScopedPlatformHandle server_pipe,
+ const std::string& secret) {
+ CHECK(internal::g_core);
+ internal::g_core->AddChild(child_process, std::move(server_pipe), secret);
+}
+
void SetParentPipeHandle(ScopedPlatformHandle pipe) {
CHECK(internal::g_core);
internal::g_core->InitChild(std::move(pipe));
}
+void SetParentPipeHandle(ScopedPlatformHandle pipe, const std::string& secret) {
+ CHECK(internal::g_core);
+ internal::g_core->InitChild(std::move(pipe), secret);
+}
+
void Init() {
internal::g_core = new Core();
}

Powered by Google App Engine
This is Rietveld 408576698