| 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 "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "net/cert/cert_status_flags.h" | 9 #include "net/cert/cert_status_flags.h" |
| 10 #include "net/cert/sct_status_flags.h" | 10 #include "net/cert/sct_status_flags.h" |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 // certificate errors. | 101 // certificate errors. |
| 102 ContentStatus content_with_cert_errors_status; | 102 ContentStatus content_with_cert_errors_status; |
| 103 // The verification statuses of the signed certificate timestamps | 103 // The verification statuses of the signed certificate timestamps |
| 104 // for the connection. | 104 // for the connection. |
| 105 std::vector<net::ct::SCTVerifyStatus> sct_verify_statuses; | 105 std::vector<net::ct::SCTVerifyStatus> sct_verify_statuses; |
| 106 bool scheme_is_cryptographic; | 106 bool scheme_is_cryptographic; |
| 107 net::CertStatus cert_status; | 107 net::CertStatus cert_status; |
| 108 int cert_id; | 108 int cert_id; |
| 109 // The security strength, in bits, of the SSL cipher suite. In late | 109 // The security strength, in bits, of the SSL cipher suite. In late |
| 110 // 2015, 128 is considered the minimum. | 110 // 2015, 128 is considered the minimum. |
| 111 // 0 means the connection is not encrypted. | 111 // |
| 112 // -1 means the security strength is unknown. | 112 // 0 means the connection uses HTTPS but is not encrypted. -1 means |
| 113 // the security strength is unknown or the connection does not use |
| 114 // HTTPS. |
| 113 int security_bits; | 115 int security_bits; |
| 114 // Information about the SSL connection, such as protocol and | 116 // Information about the SSL connection, such as protocol and |
| 115 // ciphersuite. See ssl_connection_flags.h in net. | 117 // ciphersuite. See ssl_connection_flags.h in net. |
| 116 int connection_status; | 118 int connection_status; |
| 117 // A mask that indicates which of the protocol version, | 119 // A mask that indicates which of the protocol version, |
| 118 // key exchange, or cipher for the connection is considered | 120 // key exchange, or cipher for the connection is considered |
| 119 // obsolete. See net::ObsoleteSSLMask for specific mask values. | 121 // obsolete. See net::ObsoleteSSLMask for specific mask values. |
| 120 int obsolete_ssl_status; | 122 int obsolete_ssl_status; |
| 121 | 123 |
| 122 // True if pinning was bypassed due to a local trust anchor. | 124 // True if pinning was bypassed due to a local trust anchor. |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 185 mutable VisibleSecurityState visible_security_state_; | 187 mutable VisibleSecurityState visible_security_state_; |
| 186 | 188 |
| 187 SecurityStateModelClient* client_; | 189 SecurityStateModelClient* client_; |
| 188 | 190 |
| 189 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); | 191 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); |
| 190 }; | 192 }; |
| 191 | 193 |
| 192 } // namespace security_state | 194 } // namespace security_state |
| 193 | 195 |
| 194 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ | 196 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ |
| OLD | NEW |