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

Unified Diff: components/nacl/common/nacl_nonsfi_util.h

Issue 279693002: Split NaCl SFI and non-SFI helpers into separate processes (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Refactor IsNonSFIModeEnabled() into nacl/common Created 6 years, 7 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: 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..3dde7bc0acf8f68c3e9cfa74735bd90a5141c441
--- /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 for a given platform and if non-SFI
Mark Seaborn 2014/05/12 22:49:26 Nit: maybe "current platform"? (Since "given" sug
mdempsky 2014/05/12 22:54:24 Done.
+// 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_

Powered by Google App Engine
This is Rietveld 408576698