| 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 COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ | 5 #ifndef COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ |
| 6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ | 6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 27 matching lines...) Expand all Loading... |
| 38 enum SecurityLevel { | 38 enum SecurityLevel { |
| 39 // HTTP/no URL/HTTPS but with insecure passive content on the page. | 39 // HTTP/no URL/HTTPS but with insecure passive content on the page. |
| 40 NONE, | 40 NONE, |
| 41 | 41 |
| 42 // HTTPS with valid EV cert. | 42 // HTTPS with valid EV cert. |
| 43 EV_SECURE, | 43 EV_SECURE, |
| 44 | 44 |
| 45 // HTTPS (non-EV) with valid cert. | 45 // HTTPS (non-EV) with valid cert. |
| 46 SECURE, | 46 SECURE, |
| 47 | 47 |
| 48 // HTTPS, but with an outdated protocol version. | |
| 49 SECURITY_WARNING, | |
| 50 | |
| 51 // HTTPS, but the certificate verification chain is anchored on a | 48 // HTTPS, but the certificate verification chain is anchored on a |
| 52 // certificate that was installed by the system administrator. | 49 // certificate that was installed by the system administrator. |
| 53 SECURITY_POLICY_WARNING, | 50 SECURITY_POLICY_WARNING, |
| 54 | 51 |
| 55 // Attempted HTTPS and failed, page not authenticated, HTTPS with | 52 // Attempted HTTPS and failed, page not authenticated, HTTPS with |
| 56 // insecure active content on the page, malware, phishing, or any other | 53 // insecure active content on the page, malware, phishing, or any other |
| 57 // serious security issue. | 54 // serious security issue. |
| 58 SECURITY_ERROR, | 55 SECURITY_ERROR, |
| 59 }; | 56 }; |
| 60 | 57 |
| (...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 195 mutable VisibleSecurityState visible_security_state_; | 192 mutable VisibleSecurityState visible_security_state_; |
| 196 | 193 |
| 197 SecurityStateModelClient* client_; | 194 SecurityStateModelClient* client_; |
| 198 | 195 |
| 199 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); | 196 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); |
| 200 }; | 197 }; |
| 201 | 198 |
| 202 } // namespace security_state | 199 } // namespace security_state |
| 203 | 200 |
| 204 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ | 201 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ |
| OLD | NEW |