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

Unified Diff: mojo/edk/system/core.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/system/core.cc
diff --git a/mojo/edk/system/core.cc b/mojo/edk/system/core.cc
index 17f7bf5f7a6b92aabd88c4fee333318ddfb16112..eed6f3278e97d26adb7e88409a3a7e793f740616 100644
--- a/mojo/edk/system/core.cc
+++ b/mojo/edk/system/core.cc
@@ -81,12 +81,24 @@ scoped_refptr<Dispatcher> Core::GetDispatcher(MojoHandle handle) {
void Core::AddChild(base::ProcessHandle process_handle,
ScopedPlatformHandle platform_handle) {
- GetNodeController()->ConnectToChild(process_handle,
- std::move(platform_handle));
+ GetNodeController()->ConnectToChild(
+ process_handle, std::move(platform_handle), "");
+}
+
+void Core::AddChild(base::ProcessHandle process_handle,
+ ScopedPlatformHandle platform_handle,
+ const std::string& secret) {
+ GetNodeController()->ConnectToChild(
+ process_handle, std::move(platform_handle), secret);
}
void Core::InitChild(ScopedPlatformHandle platform_handle) {
- GetNodeController()->ConnectToParent(std::move(platform_handle));
+ GetNodeController()->ConnectToParent(std::move(platform_handle), "");
+}
+
+void Core::InitChild(ScopedPlatformHandle platform_handle,
+ const std::string& secret) {
+ GetNodeController()->ConnectToParent(std::move(platform_handle), secret);
}
MojoHandle Core::AddDispatcher(scoped_refptr<Dispatcher> dispatcher) {

Powered by Google App Engine
This is Rietveld 408576698