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

Unified Diff: services/service_manager/runner/host/service_process_launcher.h

Issue 2680973006: Mojo EDK: Add safe process connection API (Closed)
Patch Set: . Created 3 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: services/service_manager/runner/host/service_process_launcher.h
diff --git a/services/service_manager/runner/host/service_process_launcher.h b/services/service_manager/runner/host/service_process_launcher.h
index d117f7c82bd079959214bae484aafdd18b396986..39afe1f517c3897247a2ece290cf39d1b85da0b0 100644
--- a/services/service_manager/runner/host/service_process_launcher.h
+++ b/services/service_manager/runner/host/service_process_launcher.h
@@ -15,6 +15,7 @@
#include "base/memory/weak_ptr.h"
#include "base/process/process.h"
#include "base/synchronization/waitable_event.h"
+#include "mojo/edk/embedder/pending_process_connection.h"
#include "mojo/edk/embedder/platform_channel_pair.h"
#include "services/service_manager/public/interfaces/service_factory.mojom.h"
@@ -83,7 +84,7 @@ class ServiceProcessLauncher {
// Used to initialize the Mojo IPC channel between parent and child.
std::unique_ptr<mojo::edk::PlatformChannelPair> mojo_ipc_channel_;
mojo::edk::HandlePassingInformation handle_passing_info_;
- const std::string child_token_;
+ mojo::edk::PendingProcessConnection process_connection_;
// Since Start() calls a method on another thread, we use an event to block
// the main thread if it tries to destruct |this| while launching the process.

Powered by Google App Engine
This is Rietveld 408576698