Index: components/nacl/common/nacl_nonsfi_util.h |
diff --git a/components/nacl/common/nacl_nonsfi_util.h b/components/nacl/common/nacl_nonsfi_util.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..07c033f35863148a7bafe40c488cece810fc2991 |
--- /dev/null |
+++ b/components/nacl/common/nacl_nonsfi_util.h |
@@ -0,0 +1,18 @@ |
+// Copyright 2014 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 COMPONENTS_NACL_COMMON_NACL_NONSFI_UTIL_H_ |
+#define COMPONENTS_NACL_COMMON_NACL_NONSFI_UTIL_H_ |
+ |
+namespace nacl { |
+ |
+// Returns true if non-SFI mode *can* run on the current platform and if non-SFI |
+// manifest entries are preferred. There can be other restrictions which |
+// prevent a particular module from launching. See NaClProcessHost::Launch |
+// which makes the final determination. |
+bool IsNonSFIModeEnabled(); |
+ |
+} // namespace nacl |
+ |
+#endif // COMPONENTS_NACL_COMMON_NACL_NONSFI_UTIL_H_ |