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

Unified Diff: src/untrusted/init/kernel_service.h

Issue 25147002: nacl_init Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 7 years, 3 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 | « src/untrusted/init/irt_dev_process.c ('k') | src/untrusted/init/kernel_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/untrusted/init/kernel_service.h
diff --git a/src/untrusted/init/kernel_service.h b/src/untrusted/init/kernel_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..2e5ecf26888b435d4007c2d7eae78be66611c549
--- /dev/null
+++ b/src/untrusted/init/kernel_service.h
@@ -0,0 +1,25 @@
+// Copyright (c) 2013 The Native Client Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef NATIVE_CLIENT_SRC_UNTRUSTED_INIT_KERNEL_SERVICE_H_
+#define NATIVE_CLIENT_SRC_UNTRUSTED_INIT_KERNEL_SERVICE_H_
+
+namespace nacl {
+
+class KernelServiceClient : public SrpcClientConnection {
+ public:
+ KernelServiceClient() {}
+
+ // Return true if successful. When successful, |*child_sockaddr|
+ // contains the socket address to the service runtime for the newly
+ // created subprocess, and |*app_sockaddr| contains the application
+ // (untrusted) socket address.
+ bool CreateProcess(int *child_sockaddr, int *app_sockaddr);
+
+ ServiceRuntimeClient* ServiceRuntimeClientFactory(int child_sockaddr);
+};
+
+} // namespace nacl
+
+#endif
« no previous file with comments | « src/untrusted/init/irt_dev_process.c ('k') | src/untrusted/init/kernel_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698