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

Unified Diff: src/trusted/service_runtime/nacl_command_service.h

Issue 10914138: Split secure command channel and untrusted application channel (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: Created 8 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
Index: src/trusted/service_runtime/nacl_command_service.h
diff --git a/src/trusted/service_runtime/nacl_command_service.h b/src/trusted/service_runtime/nacl_command_service.h
new file mode 100644
index 0000000000000000000000000000000000000000..c35562e10557639eeffee66bcab6303c200624bb
--- /dev/null
+++ b/src/trusted/service_runtime/nacl_command_service.h
@@ -0,0 +1,36 @@
+/*
+ * Copyright (c) 2012 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_TRUSTED_SERVICE_RUNTIME_NACL_COMMAND_SERVICE_H_
+#define NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_COMMAND_SERVICE_H_
+
+#include "native_client/src/include/nacl_base.h"
+#include "native_client/src/trusted/service_runtime/sel_ldr.h"
+#include "native_client/src/trusted/simple_service/nacl_simple_service.h"
+
+EXTERN_C_BEGIN
+
+/*
+ * Command channel.
+ */
+
+struct NaClCommandService {
+ struct NaClSimpleService base;
+ struct NaClApp *nap;
+};
+
+int NaClCommandServiceCtor(
+ struct NaClCommandService *self,
+ struct NaClSrpcHandlerDesc const *srpc_handlers,
+ struct NaClApp *nap);
+
+void NaClCommandServiceDtor(struct NaClRefCount *vself);
+
+extern struct NaClSimpleServiceVtbl const kNaClCommandServiceVtbl;
+
+EXTERN_C_END
+
+#endif /* NATIVE_CLIENT_SRC_TRUSTED_SERVICE_RUNTIME_NACL_COMMAND_SERVICE_H_ */

Powered by Google App Engine
This is Rietveld 408576698