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

Side by Side Diff: components/security_state/security_state_model.h

Issue 1727133002: Expose TLS settings in the Security panel overview, and call out individual obsolete settings. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Respond to comments; simplify a lot of the strings; take out IsObsoleteTLSCipherSuite(). Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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 // A mask that indicates which of the protocol version,
108 // are considered secure. 108 // key exchange, or cipher for the connection is considered
109 bool is_secure_protocol_and_ciphersuite; 109 // obsolete. See net::ObsoleteSSLMask for specific mask values.
110 int obsolete_ssl_status;
110 }; 111 };
111 112
112 // Contains the security state relevant to computing the SecurityInfo 113 // Contains the security state relevant to computing the SecurityInfo
113 // for a page. This is the input to GetSecurityInfo() provided by the 114 // for a page. This is the input to GetSecurityInfo() provided by the
114 // model's client. 115 // model's client.
115 struct VisibleSecurityState { 116 struct VisibleSecurityState {
116 VisibleSecurityState(); 117 VisibleSecurityState();
117 ~VisibleSecurityState(); 118 ~VisibleSecurityState();
118 bool operator==(const VisibleSecurityState& other) const; 119 bool operator==(const VisibleSecurityState& other) const;
119 bool initialized; 120 bool initialized;
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
160 mutable VisibleSecurityState visible_security_state_; 161 mutable VisibleSecurityState visible_security_state_;
161 162
162 SecurityStateModelClient* client_; 163 SecurityStateModelClient* client_;
163 164
164 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); 165 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel);
165 }; 166 };
166 167
167 } // namespace security_state 168 } // namespace security_state
168 169
169 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ 170 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698