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

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

Issue 2761333002: Add a DevTools warning for a missing subjectAltName (Closed)
Patch Set: Feedback & fixes Created 3 years, 9 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_H_ 5 #ifndef COMPONENTS_SECURITY_STATE_SECURITY_STATE_H_
6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_H_ 6 #define COMPONENTS_SECURITY_STATE_SECURITY_STATE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 int obsolete_ssl_status; 135 int obsolete_ssl_status;
136 136
137 // True if pinning was bypassed due to a local trust anchor. 137 // True if pinning was bypassed due to a local trust anchor.
138 bool pkp_bypassed; 138 bool pkp_bypassed;
139 139
140 // True if the page displayed password field on an HTTP page. 140 // True if the page displayed password field on an HTTP page.
141 bool displayed_password_field_on_http; 141 bool displayed_password_field_on_http;
142 142
143 // True if the page displayed credit card field on an HTTP page. 143 // True if the page displayed credit card field on an HTTP page.
144 bool displayed_credit_card_field_on_http; 144 bool displayed_credit_card_field_on_http;
145
146 // True if the server's certificate does not contain a
147 // subjectAltName extension with a domain name or IP address.
148 bool cert_missing_subject_alt_name;
145 }; 149 };
146 150
147 // Contains the security state relevant to computing the SecurityInfo 151 // Contains the security state relevant to computing the SecurityInfo
148 // for a page. This is the input to GetSecurityInfo(). 152 // for a page. This is the input to GetSecurityInfo().
149 struct VisibleSecurityState { 153 struct VisibleSecurityState {
150 VisibleSecurityState(); 154 VisibleSecurityState();
151 ~VisibleSecurityState(); 155 ~VisibleSecurityState();
152 bool operator==(const VisibleSecurityState& other) const; 156 bool operator==(const VisibleSecurityState& other) const;
153 GURL url; 157 GURL url;
154 158
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 SecurityInfo* result); 211 SecurityInfo* result);
208 212
209 // Returns true if an experimental form warning UI about HTTP passwords 213 // Returns true if an experimental form warning UI about HTTP passwords
210 // and credit cards is enabled. This warning UI can be enabled with the 214 // and credit cards is enabled. This warning UI can be enabled with the
211 // |kHttpFormWarningFeature| feature. 215 // |kHttpFormWarningFeature| feature.
212 bool IsHttpWarningInFormEnabled(); 216 bool IsHttpWarningInFormEnabled();
213 217
214 } // namespace security_state 218 } // namespace security_state
215 219
216 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_H_ 220 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_H_
OLDNEW
« no previous file with comments | « components/security_state/content/content_utils_unittest.cc ('k') | components/security_state/core/security_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698