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

Unified Diff: net/android/cert_verify_result_android.h

Issue 599493004: Use the new java_cpp_enum rule in net. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: one more aosp fix Created 6 years, 3 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
« no previous file with comments | « net/android/BUILD.gn ('k') | net/android/cert_verify_status_android_list.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/android/cert_verify_result_android.h
diff --git a/net/android/cert_verify_result_android.h b/net/android/cert_verify_result_android.h
index 7027c3d7726dc1842133f528d6e98c5feda5e181..e1cd3ce659adab4c16e414df4b8a678a24a6c360 100644
--- a/net/android/cert_verify_result_android.h
+++ b/net/android/cert_verify_result_android.h
@@ -16,10 +16,28 @@ namespace net {
namespace android {
+// The list of certificate verification results returned from Java side to the
+// C++ side.
+//
+// A Java counterpart will be generated for this enum.
+// GENERATED_JAVA_ENUM_PACKAGE: org.chromium.net
enum CertVerifyStatusAndroid {
-#define CERT_VERIFY_STATUS_ANDROID(label, value) VERIFY_ ## label = value,
-#include "net/android/cert_verify_status_android_list.h"
-#undef CERT_VERIFY_STATUS_ANDROID
+ // Certificate is trusted.
+ CERT_VERIFY_STATUS_ANDROID_OK = 0,
+ // Certificate verification could not be conducted.
+ CERT_VERIFY_STATUS_ANDROID_FAILED = -1,
+ // Certificate is not trusted due to non-trusted root of the certificate
+ // chain.
+ CERT_VERIFY_STATUS_ANDROID_NO_TRUSTED_ROOT = -2,
+ // Certificate is not trusted because it has expired.
+ CERT_VERIFY_STATUS_ANDROID_EXPIRED = -3,
+ // Certificate is not trusted because it is not valid yet.
+ CERT_VERIFY_STATUS_ANDROID_NOT_YET_VALID = -4,
+ // Certificate is not trusted because it could not be parsed.
+ CERT_VERIFY_STATUS_ANDROID_UNABLE_TO_PARSE = -5,
+ // Certificate is not trusted because it has an extendedKeyUsage field, but
+ // its value is not correct for a web server.
+ CERT_VERIFY_STATUS_ANDROID_INCORRECT_KEY_USAGE = -6,
};
// Extract parameters out of an AndroidCertVerifyResult object.
« no previous file with comments | « net/android/BUILD.gn ('k') | net/android/cert_verify_status_android_list.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698