Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_ANDROID_H_ | 5 #ifndef CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_ANDROID_H_ |
| 6 #define CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_ANDROID_H_ | 6 #define CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_ANDROID_H_ |
| 7 | 7 |
| 8 #include "base/android/jni_android.h" | 8 #include "base/android/jni_android.h" |
| 9 | 9 |
| 10 // TODO(estark): This is a temporary duplicated enum that is only used | |
|
blundell
2016/01/05 16:02:16
Hmm, this seems unfortunate. What's the blocker on
estark
2016/01/05 22:59:30
No blocker, I was just trying to keep the CL to a
| |
| 11 // by Java code. It should go away and the Java code should use the | |
| 12 // componentized security_state::SecurityStateModel::SecurityLevel enum | |
| 13 // instead. https://crbug.com/515071 | |
| 14 // | |
| 15 // A Java counterpart will be generated for this enum. | |
| 16 // GENERATED_JAVA_ENUM_PACKAGE: org.chromium.chrome.browser.ssl | |
| 17 // GENERATED_JAVA_CLASS_NAME_OVERRIDE: ConnectionSecurityLevel | |
| 18 enum SecurityLevel { | |
| 19 // HTTP/no URL/HTTPS but with insecure passive content on the page | |
| 20 NONE, | |
| 21 | |
| 22 // HTTPS with valid EV cert | |
| 23 EV_SECURE, | |
| 24 | |
| 25 // HTTPS (non-EV) with valid cert | |
| 26 SECURE, | |
| 27 | |
| 28 // HTTPS, but with an outdated protocol version | |
| 29 SECURITY_WARNING, | |
| 30 | |
| 31 // HTTPS, but the certificate verification chain is anchored on a | |
| 32 // certificate that was installed by the system administrator | |
| 33 SECURITY_POLICY_WARNING, | |
| 34 | |
| 35 // Attempted HTTPS and failed, page not authenticated, or HTTPS with | |
| 36 // insecure active content on the page | |
| 37 SECURITY_ERROR, | |
| 38 }; | |
| 39 | |
| 10 bool RegisterSecurityStateModelAndroid(JNIEnv* env); | 40 bool RegisterSecurityStateModelAndroid(JNIEnv* env); |
| 11 | 41 |
| 12 #endif // CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_ANDROID_H_ | 42 #endif // CHROME_BROWSER_SSL_SECURITY_STATE_MODEL_ANDROID_H_ |
| OLD | NEW |