Chromium Code Reviews| 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 <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 Loading... | |
| 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 Loading... | |
| 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_ |
| OLD | NEW |