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

Unified Diff: src/trusted/validator/validation_status.h

Issue 10134056: Refactor the process of choosing validators. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: The actual refactoring Created 8 years, 8 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: src/trusted/validator/validation_status.h
diff --git a/src/trusted/validator/validation_status.h b/src/trusted/validator/validation_status.h
new file mode 100644
index 0000000000000000000000000000000000000000..28c7ab8c2046a39da647a290cd6a471ed569b838
--- /dev/null
+++ b/src/trusted/validator/validation_status.h
@@ -0,0 +1,26 @@
+/*
+ * Copyright (c) 2012 The Native Client 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 NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_STATUS_H_
+#define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_STATUS_H_
+
+/* Defines possible validation status values. */
+typedef enum NaClValidationStatus {
+ /* The call to the validator succeeded. */
+ NaClValidationSucceeded,
+ /* The call to the validator failed (Reason unspecified) */
+ NaClValidationFailed,
+ /* The call to the validator failed, due to not enough memory. */
+ NaClValidationFailedOutOfMemory,
+ /* The call to the validator failed, due to it not being implemented yet. */
+ NaClValidationFailedNotImplemented,
+ /* The call to the validator failed, because the CPU is not supported. */
+ NaClValidationFailedCpuNotSupported,
+ /* The call to the validator failed, due to segment alignment issues. */
+ NaClValidationFailedSegmentationIssue
+} NaClValidationStatus;
+
+#endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_VALIDATION_STATUS_H_ */

Powered by Google App Engine
This is Rietveld 408576698