| 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_COMMON_SSL_STATUS_H_ | 5 #ifndef CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ |
| 6 #define CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ | 6 #define CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ |
| 7 | 7 |
| 8 #include <stdint.h> |
| 9 |
| 8 #include <vector> | 10 #include <vector> |
| 9 | 11 |
| 10 #include "content/common/content_export.h" | 12 #include "content/common/content_export.h" |
| 11 #include "content/public/common/security_style.h" | 13 #include "content/public/common/security_style.h" |
| 12 #include "net/cert/cert_status_flags.h" | 14 #include "net/cert/cert_status_flags.h" |
| 13 #include "net/cert/sct_status_flags.h" | 15 #include "net/cert/sct_status_flags.h" |
| 14 #include "net/cert/x509_certificate.h" | 16 #include "net/cert/x509_certificate.h" |
| 15 | 17 |
| 16 namespace net { | 18 namespace net { |
| 17 class SSLInfo; | 19 class SSLInfo; |
| (...skipping 30 matching lines...) Expand all Loading... |
| 48 SSLStatus(const SSLStatus& other); | 50 SSLStatus(const SSLStatus& other); |
| 49 ~SSLStatus(); | 51 ~SSLStatus(); |
| 50 | 52 |
| 51 bool Equals(const SSLStatus& status) const { | 53 bool Equals(const SSLStatus& status) const { |
| 52 return security_style == status.security_style && | 54 return security_style == status.security_style && |
| 53 !!certificate == !!status.certificate && | 55 !!certificate == !!status.certificate && |
| 54 (certificate ? certificate->Equals(status.certificate.get()) : | 56 (certificate ? certificate->Equals(status.certificate.get()) : |
| 55 true) && | 57 true) && |
| 56 cert_status == status.cert_status && | 58 cert_status == status.cert_status && |
| 57 security_bits == status.security_bits && | 59 security_bits == status.security_bits && |
| 58 key_exchange_info == status.key_exchange_info && | 60 key_exchange_group == status.key_exchange_group && |
| 59 connection_status == status.connection_status && | 61 connection_status == status.connection_status && |
| 60 content_status == status.content_status && | 62 content_status == status.content_status && |
| 61 sct_statuses == status.sct_statuses && | 63 sct_statuses == status.sct_statuses && |
| 62 pkp_bypassed == status.pkp_bypassed; | 64 pkp_bypassed == status.pkp_bypassed; |
| 63 } | 65 } |
| 64 | 66 |
| 65 content::SecurityStyle security_style; | 67 content::SecurityStyle security_style; |
| 66 scoped_refptr<net::X509Certificate> certificate; | 68 scoped_refptr<net::X509Certificate> certificate; |
| 67 net::CertStatus cert_status; | 69 net::CertStatus cert_status; |
| 68 int security_bits; | 70 int security_bits; |
| 69 int key_exchange_info; | 71 uint16_t key_exchange_group; |
| 70 int connection_status; | 72 int connection_status; |
| 71 // A combination of the ContentStatusFlags above. | 73 // A combination of the ContentStatusFlags above. |
| 72 int content_status; | 74 int content_status; |
| 73 // The validation statuses of the Signed Certificate Timestamps (SCTs) | 75 // The validation statuses of the Signed Certificate Timestamps (SCTs) |
| 74 // of Certificate Transparency (CT) that were served with the | 76 // of Certificate Transparency (CT) that were served with the |
| 75 // main resource. | 77 // main resource. |
| 76 std::vector<net::ct::SCTVerifyStatus> sct_statuses; | 78 std::vector<net::ct::SCTVerifyStatus> sct_statuses; |
| 77 // True if PKP was bypassed due to a local trust anchor. | 79 // True if PKP was bypassed due to a local trust anchor. |
| 78 bool pkp_bypassed; | 80 bool pkp_bypassed; |
| 79 }; | 81 }; |
| 80 | 82 |
| 81 } // namespace content | 83 } // namespace content |
| 82 | 84 |
| 83 #endif // CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ | 85 #endif // CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ |
| OLD | NEW |