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

Unified Diff: mojo/nacl/nonsfi/irt_mojo_nonsfi.h

Issue 1382713002: Creating a pexe content handler to translate and run pexes. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Added Mojom interface to communicate with translation nexes Created 5 years, 2 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: mojo/nacl/nonsfi/irt_mojo_nonsfi.h
diff --git a/mojo/nacl/nonsfi/irt_mojo_nonsfi.h b/mojo/nacl/nonsfi/irt_mojo_nonsfi.h
index 2895902882b46737ff58f4a8080ed35db5d59069..8ef2b3567e3585f2bf86d29d26e96f5dbbf6bf13 100644
--- a/mojo/nacl/nonsfi/irt_mojo_nonsfi.h
+++ b/mojo/nacl/nonsfi/irt_mojo_nonsfi.h
@@ -6,13 +6,27 @@
#define MOJO_NACL_NONSFI_IRT_MOJO_NONSFI_H_
#include "mojo/public/c/system/functions.h"
+#include "native_client/src/untrusted/irt/irt_dev.h"
namespace nacl {
+extern const struct nacl_irt_private_pnacl_translator_compile
+ nacl_irt_private_pnacl_translator_compile;
+extern const struct nacl_irt_private_pnacl_translator_link
+ nacl_irt_private_pnacl_translator_link;
+extern const struct nacl_irt_resource_open
+ nacl_irt_resource_open;
+
// Used to pass handle to application. If uncalled,
// the handle defaults to MOJO_HANDLE_INVALID.
void MojoSetInitialHandle(MojoHandle handle);
+MojoResult MojoGetInitialHandle(MojoHandle* handle);
+
+// Mechanism to contorl when nexes get access to the PNaCl translation
Petr Hosek 2015/10/27 15:07:52 Nit: "contorl" -> "control"
Sean Klein 2015/10/28 17:02:41 Done.
+// IRT functions.
+void MojoPnaclTranslatorEnable();
+
// IRT interface query function which may be passed to nacl_irt_nonsfi_entry.
// Queries for a mojo interface, then for the irt core.
size_t MojoIrtNonsfiQuery(const char* interface_ident,

Powered by Google App Engine
This is Rietveld 408576698