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

Unified Diff: services/service_manager/runner/common/client_util.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/common/client_util.h
diff --git a/services/service_manager/runner/common/client_util.h b/services/service_manager/runner/common/client_util.h
index 2ca1213a692a43e285da956c5d25f901daf762f2..a29f16746821455c20e8eb929ec6c52eb27efc5d 100644
--- a/services/service_manager/runner/common/client_util.h
+++ b/services/service_manager/runner/common/client_util.h
@@ -5,22 +5,27 @@
#ifndef SERVICES_SERVICE_MANAGER_RUNNER_COMMON_CLIENT_UTIL_H_
#define SERVICES_SERVICE_MANAGER_RUNNER_COMMON_CLIENT_UTIL_H_
-#include <string>
-
#include "services/service_manager/public/interfaces/service.mojom.h"
namespace base {
class CommandLine;
}
+namespace mojo {
+namespace edk {
+class PendingProcessConnection;
+}
+}
+
namespace service_manager {
-// Creates a new Service pipe and returns one end of it. The other end is
-// passed via a token in |command_line|. A child of the calling process may
-// extract a ServiceRequest from this by calling
-// GetServiceRequestFromCommandLine().
+// Creates a new Service pipe for connection to a not-yet-launched child process
+// and returns one end of it. The other end is passed via a token in
+// |command_line|. The launched process may extract the corresponding
+// ServiceRequest by calling GetServiceRequestFromCommandLine().
mojom::ServicePtr PassServiceRequestOnCommandLine(
- base::CommandLine* command_line, const std::string& child_token);
+ mojo::edk::PendingProcessConnection* connection,
+ base::CommandLine* command_line);
// Extracts a ServiceRequest from the command line of the current process.
// The parent of this process should have passed a request using
« no previous file with comments | « services/service_manager/runner/common/BUILD.gn ('k') | services/service_manager/runner/common/client_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698