Index: components/nacl/renderer/platform_info.h |
diff --git a/components/nacl/renderer/platform_info.h b/components/nacl/renderer/platform_info.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..66acff12ef9cb090c8d9abe67a43290a1024360f |
--- /dev/null |
+++ b/components/nacl/renderer/platform_info.h |
@@ -0,0 +1,19 @@ |
+// 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_RENDERER_PLATFORM_INFO_H |
+#define COMPONENTS_NACL_RENDERER_PLATFORM_INFO_H |
+ |
+namespace nacl { |
+// Returns the kind of SFI sandbox implemented by NaCl on this |
+// platform. See the implementation in platform_info.cc for possible |
+// values. |
+const char* GetSandboxArch(); |
+ |
+// Returns the feature attributes for the system's processor. Used for PNaCl |
+// translation. |
+std::string GetCpuFeatureAttrs(); |
bbudge
2014/07/17 17:57:55
Since this now returns a string, perhaps it could
teravest
2014/07/17 18:01:40
Done.
|
+} // namespace nacl |
+ |
+#endif // COMPONENTS_NACL_RENDERER_PLATFORM_INFO_H |