Index: components/nacl/renderer/sandbox_isa.h |
diff --git a/components/nacl/renderer/sandbox_isa.h b/components/nacl/renderer/sandbox_isa.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..a5a81dd9789eb4811a5e46ba3328a4ab2756b369 |
--- /dev/null |
+++ b/components/nacl/renderer/sandbox_isa.h |
@@ -0,0 +1,24 @@ |
+// Copyright (c) 2012 The Chromium Authors. All rights reserved. |
dmichael (off chromium)
2014/03/11 19:00:16
nit: 2014
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+// Routines for determining the most appropriate NaCl executable for |
+// the current CPU's architecture. |
+ |
+#ifndef CONTENT_NACL_RENDERER_NEXE_ARCH_H |
+#define CONTENT_NACL_RENDERER_NEXE_ARCH_H |
dmichael (off chromium)
2014/03/11 19:00:16
^^^ doesn't match path anymore
|
+ |
+namespace nacl { |
+// Returns the kind of SFI sandbox implemented by sel_ldr on this |
+// platform. See the implementations in arch_*/sandbox_isa.cc for possible |
dmichael (off chromium)
2014/03/11 19:00:16
ditto
|
+// values. |
+// |
+// This is a function of the current CPU, and OS. |
+// It is not sufficient to derive the result only from build-time parameters |
+// since, for example, an x86-32 plugin is capable of launching a 64-bit NaCl |
dmichael (off chromium)
2014/03/11 19:00:16
plugin->browser ?
|
+// sandbox if a 64-bit sel_ldr is installed (and indeed, may only be capable of |
+// launching a 64-bit sandbox). |
+const char* GetSandboxISA(); |
+} // namespace nacl |
+ |
+#endif // CONTENT_NACL_RENDERER_NEXE_ARCH_H |