| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ | 5 #ifndef CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ |
| 6 #define CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ | 6 #define CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 // HTTPS page containing "executed" HTTP resources (i.e. script). | 34 // HTTPS page containing "executed" HTTP resources (i.e. script). |
| 35 RAN_INSECURE_CONTENT = 1 << 1, | 35 RAN_INSECURE_CONTENT = 1 << 1, |
| 36 | 36 |
| 37 // HTTPS page containing "displayed" HTTPS resources (e.g. images, | 37 // HTTPS page containing "displayed" HTTPS resources (e.g. images, |
| 38 // CSS) loaded with certificate errors. | 38 // CSS) loaded with certificate errors. |
| 39 DISPLAYED_CONTENT_WITH_CERT_ERRORS = 1 << 2, | 39 DISPLAYED_CONTENT_WITH_CERT_ERRORS = 1 << 2, |
| 40 | 40 |
| 41 // HTTPS page containing "executed" HTTPS resources (i.e. script) | 41 // HTTPS page containing "executed" HTTPS resources (i.e. script) |
| 42 // loaded with certificate errors. | 42 // loaded with certificate errors. |
| 43 RAN_CONTENT_WITH_CERT_ERRORS = 1 << 3, | 43 RAN_CONTENT_WITH_CERT_ERRORS = 1 << 3, |
| 44 |
| 45 // HTTP page containing a password input. Embedders may use this to |
| 46 // adjust UI on nonsecure pages that collect sensitive data. |
| 47 // TODO: integrate password detection to set this flag. |
| 48 // https://crbug.com/647560 |
| 49 DISPLAYED_PASSWORD_FIELD_ON_HTTP = 1 << 4, |
| 50 |
| 51 // HTTP page containing a credit card input. Embedders may use this to |
| 52 // adjust UI on nonsecure pages that collect sensitive data. |
| 53 // TODO: integrate credit card detection to set this flag. |
| 54 // https://crbug.com/647560 |
| 55 DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP = 1 << 5, |
| 44 }; | 56 }; |
| 45 | 57 |
| 46 SSLStatus(); | 58 SSLStatus(); |
| 47 SSLStatus(SecurityStyle security_style, | 59 SSLStatus(SecurityStyle security_style, |
| 48 scoped_refptr<net::X509Certificate> certificate, | 60 scoped_refptr<net::X509Certificate> certificate, |
| 49 const net::SSLInfo& ssl_info); | 61 const net::SSLInfo& ssl_info); |
| 50 SSLStatus(const SSLStatus& other); | 62 SSLStatus(const SSLStatus& other); |
| 51 ~SSLStatus(); | 63 ~SSLStatus(); |
| 52 | 64 |
| 53 bool Equals(const SSLStatus& status) const { | 65 bool Equals(const SSLStatus& status) const { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 76 // of Certificate Transparency (CT) that were served with the | 88 // of Certificate Transparency (CT) that were served with the |
| 77 // main resource. | 89 // main resource. |
| 78 std::vector<net::ct::SCTVerifyStatus> sct_statuses; | 90 std::vector<net::ct::SCTVerifyStatus> sct_statuses; |
| 79 // True if PKP was bypassed due to a local trust anchor. | 91 // True if PKP was bypassed due to a local trust anchor. |
| 80 bool pkp_bypassed; | 92 bool pkp_bypassed; |
| 81 }; | 93 }; |
| 82 | 94 |
| 83 } // namespace content | 95 } // namespace content |
| 84 | 96 |
| 85 #endif // CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ | 97 #endif // CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ |
| OLD | NEW |