OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Native Client Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NATIVE_CLIENT_SRC_UNTRUSTED_INIT_KERNEL_SERVICE_H_ |
| 6 #define NATIVE_CLIENT_SRC_UNTRUSTED_INIT_KERNEL_SERVICE_H_ |
| 7 |
| 8 namespace nacl { |
| 9 |
| 10 class KernelServiceClient : public SrpcClientConnection { |
| 11 public: |
| 12 KernelServiceClient() {} |
| 13 |
| 14 // Return true if successful. When successful, |*child_sockaddr| |
| 15 // contains the socket address to the service runtime for the newly |
| 16 // created subprocess, and |*app_sockaddr| contains the application |
| 17 // (untrusted) socket address. |
| 18 bool CreateProcess(int *child_sockaddr, int *app_sockaddr); |
| 19 |
| 20 ServiceRuntimeClient* ServiceRuntimeClientFactory(int child_sockaddr); |
| 21 }; |
| 22 |
| 23 } // namespace nacl |
| 24 |
| 25 #endif |
OLD | NEW |