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

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: felt comments 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 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 // True if the page displayed passive mixed content. 170 // True if the page displayed passive mixed content.
171 bool displayed_mixed_content; 171 bool displayed_mixed_content;
172 // True if the page ran active mixed content. 172 // True if the page ran active mixed content.
173 bool ran_mixed_content; 173 bool ran_mixed_content;
174 // True if the page displayed passive subresources with certificate errors. 174 // True if the page displayed passive subresources with certificate errors.
175 bool displayed_content_with_cert_errors; 175 bool displayed_content_with_cert_errors;
176 // True if the page ran active subresources with certificate errors. 176 // True if the page ran active subresources with certificate errors.
177 bool ran_content_with_cert_errors; 177 bool ran_content_with_cert_errors;
178 // True if PKP was bypassed due to a local trust anchor. 178 // True if PKP was bypassed due to a local trust anchor.
179 bool pkp_bypassed; 179 bool pkp_bypassed;
180 // True if the page was an HTTP page that displayed a password field.
181 bool displayed_password_field_on_http;
182 // True if the page was an HTTP page that displayed a credit card field.
183 bool displayed_credit_card_field_on_http;
180 }; 184 };
181 185
182 // These security levels describe the treatment given to pages that 186 // These security levels describe the treatment given to pages that
183 // display and run mixed content. They are used to coordinate the 187 // display and run mixed content. They are used to coordinate the
184 // treatment of mixed content with other security UI elements. 188 // treatment of mixed content with other security UI elements.
185 static const SecurityLevel kDisplayedInsecureContentLevel; 189 static const SecurityLevel kDisplayedInsecureContentLevel;
186 static const SecurityLevel kRanInsecureContentLevel; 190 static const SecurityLevel kRanInsecureContentLevel;
187 191
188 SecurityStateModel(); 192 SecurityStateModel();
189 virtual ~SecurityStateModel(); 193 virtual ~SecurityStateModel();
(...skipping 13 matching lines...) Expand all
203 mutable VisibleSecurityState visible_security_state_; 207 mutable VisibleSecurityState visible_security_state_;
204 208
205 SecurityStateModelClient* client_; 209 SecurityStateModelClient* client_;
206 210
207 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel); 211 DISALLOW_COPY_AND_ASSIGN(SecurityStateModel);
208 }; 212 };
209 213
210 } // namespace security_state 214 } // namespace security_state
211 215
212 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_ 216 #endif // COMPONENTS_SECURITY_STATE_SECURITY_STATE_MODEL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698