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

Unified Diff: mojo/nacl/nexe_launcher_nonsfi.h

Issue 1371413003: Refactored launching of nexes to separate file. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Code Review Created 5 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: mojo/nacl/nexe_launcher_nonsfi.h
diff --git a/mojo/nacl/nexe_launcher_nonsfi.h b/mojo/nacl/nexe_launcher_nonsfi.h
new file mode 100644
index 0000000000000000000000000000000000000000..79cafad1fb743fef5c06a1f17a895c4aba9baa70
--- /dev/null
+++ b/mojo/nacl/nexe_launcher_nonsfi.h
@@ -0,0 +1,22 @@
+// Copyright 2015 The Chromium 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 MOJO_NACL_NEXE_LAUNCHER_NONSFI_H_
+#define MOJO_NACL_NEXE_LAUNCHER_NONSFI_H_
+
+#include "mojo/public/c/system/types.h"
+#include "native_client/src/public/irt_core.h"
Mark Seaborn 2015/10/02 22:31:57 Nit: These two NaCl headers aren't needed by this
Sean Klein 2015/10/02 22:41:10 Done.
+#include "native_client/src/public/nonsfi/elf_loader.h"
+
+namespace nacl {
+
+/**
+ * Takes a fd to a nexe, and launches the nexe with the given
+ * MojoHandle.
+ */
+void MojoLaunchNexeNonsfi(int fd, MojoHandle handle);
Mark Seaborn 2015/10/02 22:31:57 Suggestion: Could make this more self-documenting
Sean Klein 2015/10/02 22:41:10 Done.
+
+} // namespace nacl
+
+#endif // MOJO_NACL_NEXE_LAUNCHER_NONSFI_H_

Powered by Google App Engine
This is Rietveld 408576698