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

Unified Diff: src/trusted/service_runtime/sel_ldr.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: CommandSetup SRPC call added to secure command service. 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/sel_ldr.h
diff --git a/src/trusted/service_runtime/sel_ldr.h b/src/trusted/service_runtime/sel_ldr.h
index 027cf4125afe464cb4f6819aa719e2eea65fea32..71d0d5604c4450720d3fe516b1717b5f722d2007 100644
--- a/src/trusted/service_runtime/sel_ldr.h
+++ b/src/trusted/service_runtime/sel_ldr.h
@@ -47,6 +47,8 @@
#include "native_client/src/trusted/service_runtime/nacl_kernel_service.h"
#include "native_client/src/trusted/service_runtime/nacl_resource.h"
+#include "native_client/src/trusted/service_runtime/nacl_secure_service.h"
+
#include "native_client/src/trusted/service_runtime/sel_mem.h"
#include "native_client/src/trusted/service_runtime/sel_util.h"
#include "native_client/src/trusted/service_runtime/sel_rt.h"
@@ -70,8 +72,6 @@ struct NaClDesc; /* see native_client/src/trusted/desc/nacl_desc_base.h */
struct NaClDynamicRegion;
struct NaClManifestProxy;
struct NaClReverseQuotaInterface;
-struct NaClSecureService;
-struct NaClSecureReverseService;
struct NaClSignalContext;
struct NaClThreadInterface; /* see sel_ldr_thread_interface.h */
struct NaClValidationCache;
@@ -246,6 +246,8 @@ struct NaClApp {
struct NaClManifestProxy *manifest_proxy;
struct NaClKernelService *kernel_service;
+ int num_secure_channel;
+
struct NaClResourceNaClApp resources;
enum NaClResourcePhase resource_phase;
@@ -601,13 +603,9 @@ void NaClSetUpBootstrapChannel(struct NaClApp *nap,
void NaClSecureCommandChannel(struct NaClApp *nap);
-int NaClSecureReverseClientInsertHandler(
- struct NaClSecureReverseClient *self,
- void (*handler)(
- void *handler_state,
- struct NaClThreadInterface *thread_if,
- struct NaClDesc *new_conn),
- void *handler_state) NACL_WUR;
+void NaClSecureChannelCountIncr(struct NaClApp *nap);
+
+void NaClSecureChannelCountDecr(struct NaClApp *nap);
NaClErrorCode NaClWaitForLoadModuleStatus(struct NaClApp *nap) NACL_WUR;

Powered by Google App Engine
This is Rietveld 408576698