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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
97 net::CertStatus cert_status; | 97 net::CertStatus cert_status; |
98 int cert_id; | 98 int cert_id; |
99 // The security strength, in bits, of the SSL cipher suite. In late | 99 // The security strength, in bits, of the SSL cipher suite. In late |
100 // 2015, 128 is considered the minimum. | 100 // 2015, 128 is considered the minimum. |
101 // 0 means the connection is not encrypted. | 101 // 0 means the connection is not encrypted. |
102 // -1 means the security strength is unknown. | 102 // -1 means the security strength is unknown. |
103 int security_bits; | 103 int security_bits; |
104 // Information about the SSL connection, such as protocol and | 104 // Information about the SSL connection, such as protocol and |
105 // ciphersuite. See ssl_connection_flags.h in net. | 105 // ciphersuite. See ssl_connection_flags.h in net. |
106 int connection_status; | 106 int connection_status; |
107 // True if the protocol version and ciphersuite for the connection | 107 // True if the protocol version and ciphersuite for the connection |
estark
2016/04/18 11:46:44
Update comment.
lgarron
2016/04/25 23:56:54
Done.
| |
108 // are considered secure. | 108 // are considered secure. |
109 bool is_secure_protocol_and_ciphersuite; | 109 int obsolete_ssl_status; |
110 }; | 110 }; |
111 | 111 |
112 // Contains the security state relevant to computing the SecurityInfo | 112 // Contains the security state relevant to computing the SecurityInfo |
113 // for a page. This is the input to GetSecurityInfo() provided by the | 113 // for a page. This is the input to GetSecurityInfo() provided by the |
114 // model's client. | 114 // model's client. |
115 struct VisibleSecurityState { | 115 struct VisibleSecurityState { |
116 VisibleSecurityState(); | 116 VisibleSecurityState(); |
117 ~VisibleSecurityState(); | 117 ~VisibleSecurityState(); |
118 bool operator==(const VisibleSecurityState& other) const; | 118 bool operator==(const VisibleSecurityState& other) const; |
119 bool initialized; | 119 bool initialized; |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
160 mutable VisibleSecurityState visible_security_state_; | 160 mutable VisibleSecurityState visible_security_state_; |
161 | 161 |
162 SecurityStateModelClient* client_; | 162 SecurityStateModelClient* client_; |
163 | 163 |
164 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); | 164 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); |
165 }; | 165 }; |
166 | 166 |
167 } // namespace security_state | 167 } // namespace security_state |
168 | 168 |
169 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ | 169 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ |
OLD | NEW |