Chromium Code Reviews| 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_ |