| 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 cert_status == status.cert_status && | 67 cert_status == status.cert_status && |
| 68 security_bits == status.security_bits && | 68 security_bits == status.security_bits && |
| 69 key_exchange_group == status.key_exchange_group && | 69 key_exchange_group == status.key_exchange_group && |
| 70 connection_status == status.connection_status && | 70 connection_status == status.connection_status && |
| 71 content_status == status.content_status && | 71 content_status == status.content_status && |
| 72 sct_statuses == status.sct_statuses && | 72 sct_statuses == status.sct_statuses && |
| 73 pkp_bypassed == status.pkp_bypassed; | 73 pkp_bypassed == status.pkp_bypassed; |
| 74 } | 74 } |
| 75 | 75 |
| 76 bool initialized; | 76 bool initialized; |
| 77 // Note: this is only valid for committed entries. For other entries in the |
| 78 // NavigationController (e.g. previous entries) we prune the certificate to |
| 79 // save memory. |
| 77 scoped_refptr<net::X509Certificate> certificate; | 80 scoped_refptr<net::X509Certificate> certificate; |
| 78 net::CertStatus cert_status; | 81 net::CertStatus cert_status; |
| 79 int security_bits; | 82 int security_bits; |
| 80 uint16_t key_exchange_group; | 83 uint16_t key_exchange_group; |
| 81 int connection_status; | 84 int connection_status; |
| 82 // A combination of the ContentStatusFlags above. | 85 // A combination of the ContentStatusFlags above. |
| 83 int content_status; | 86 int content_status; |
| 84 // The validation statuses of the Signed Certificate Timestamps (SCTs) | 87 // The validation statuses of the Signed Certificate Timestamps (SCTs) |
| 85 // of Certificate Transparency (CT) that were served with the | 88 // of Certificate Transparency (CT) that were served with the |
| 86 // main resource. | 89 // main resource. |
| 87 std::vector<net::ct::SCTVerifyStatus> sct_statuses; | 90 std::vector<net::ct::SCTVerifyStatus> sct_statuses; |
| 88 // True if PKP was bypassed due to a local trust anchor. | 91 // True if PKP was bypassed due to a local trust anchor. |
| 89 bool pkp_bypassed; | 92 bool pkp_bypassed; |
| 90 }; | 93 }; |
| 91 | 94 |
| 92 } // namespace content | 95 } // namespace content |
| 93 | 96 |
| 94 #endif // CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ | 97 #endif // CONTENT_PUBLIC_BROWSER_SSL_STATUS_H_ |
| OLD | NEW |