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

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

Issue 2350273002: Add SSLStatus flags to feed HTTP_WARNING security level (Closed)
Patch Set: fix comment typos Created 4 years, 3 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 // True if the page displayed passive mixed content. 168 // True if the page displayed passive mixed content.
169 bool displayed_mixed_content; 169 bool displayed_mixed_content;
170 // True if the page ran active mixed content. 170 // True if the page ran active mixed content.
171 bool ran_mixed_content; 171 bool ran_mixed_content;
172 // True if the page displayed passive subresources with certificate errors. 172 // True if the page displayed passive subresources with certificate errors.
173 bool displayed_content_with_cert_errors; 173 bool displayed_content_with_cert_errors;
174 // True if the page ran active subresources with certificate errors. 174 // True if the page ran active subresources with certificate errors.
175 bool ran_content_with_cert_errors; 175 bool ran_content_with_cert_errors;
176 // True if PKP was bypassed due to a local trust anchor. 176 // True if PKP was bypassed due to a local trust anchor.
177 bool pkp_bypassed; 177 bool pkp_bypassed;
178 // True if the page was an HTTP page that displayed a password field.
179 bool displayed_nonsecure_password_field;
felt 2016/09/20 06:09:41 nit, here and elsewhere: let's say HTTP instead o
estark 2016/09/20 17:53:33 Oh yes, I forgot about that. Done. I find "display
180 // True if the page was an HTTP page that displayed a credit card field.
181 bool displayed_nonsecure_credit_card_field;
178 }; 182 };
179 183
180 // These security levels describe the treatment given to pages that 184 // These security levels describe the treatment given to pages that
181 // display and run mixed content. They are used to coordinate the 185 // display and run mixed content. They are used to coordinate the
182 // treatment of mixed content with other security UI elements. 186 // treatment of mixed content with other security UI elements.
183 static const SecurityLevel kDisplayedInsecureContentLevel; 187 static const SecurityLevel kDisplayedInsecureContentLevel;
184 static const SecurityLevel kRanInsecureContentLevel; 188 static const SecurityLevel kRanInsecureContentLevel;
185 189
186 SecurityStateModel(); 190 SecurityStateModel();
187 virtual ~SecurityStateModel(); 191 virtual ~SecurityStateModel();
(...skipping 13 matching lines...) Expand all
201 mutable VisibleSecurityState visible_security_state_; 205 mutable VisibleSecurityState visible_security_state_;
202 206
203 SecurityStateModelClient* client_; 207 SecurityStateModelClient* client_;
204 208
205 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); 209 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel);
206 }; 210 };
207 211
208 } // namespace security_state 212 } // namespace security_state
209 213
210 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ 214 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698