| 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 | 16 |
| 15 namespace net { | 17 namespace net { |
| 16 class SSLInfo; | 18 class SSLInfo; |
| 17 } | 19 } |
| (...skipping 26 matching lines...) Expand all Loading... |
| 44 SSLStatus(SecurityStyle security_style, | 46 SSLStatus(SecurityStyle security_style, |
| 45 int cert_id, | 47 int cert_id, |
| 46 const net::SSLInfo& ssl_info); | 48 const net::SSLInfo& ssl_info); |
| 47 SSLStatus(const SSLStatus& other); | 49 SSLStatus(const SSLStatus& other); |
| 48 ~SSLStatus(); | 50 ~SSLStatus(); |
| 49 | 51 |
| 50 bool Equals(const SSLStatus& status) const { | 52 bool Equals(const SSLStatus& status) const { |
| 51 return security_style == status.security_style && | 53 return security_style == status.security_style && |
| 52 cert_id == status.cert_id && cert_status == status.cert_status && | 54 cert_id == status.cert_id && cert_status == status.cert_status && |
| 53 security_bits == status.security_bits && | 55 security_bits == status.security_bits && |
| 54 key_exchange_info == status.key_exchange_info && | 56 key_exchange_group == status.key_exchange_group && |
| 55 connection_status == status.connection_status && | 57 connection_status == status.connection_status && |
| 56 content_status == status.content_status && | 58 content_status == status.content_status && |
| 57 sct_statuses == status.sct_statuses && | 59 sct_statuses == status.sct_statuses && |
| 58 pkp_bypassed == status.pkp_bypassed; | 60 pkp_bypassed == status.pkp_bypassed; |
| 59 } | 61 } |
| 60 | 62 |
| 61 content::SecurityStyle security_style; | 63 content::SecurityStyle security_style; |
| 62 // A cert_id value of 0 indicates that it is unset or invalid. | 64 // A cert_id value of 0 indicates that it is unset or invalid. |
| 63 int cert_id; | 65 int cert_id; |
| 64 net::CertStatus cert_status; | 66 net::CertStatus cert_status; |
| 65 int security_bits; | 67 int security_bits; |
| 66 int key_exchange_info; | 68 uint16_t key_exchange_group; |
| 67 int connection_status; | 69 int connection_status; |
| 68 // A combination of the ContentStatusFlags above. | 70 // A combination of the ContentStatusFlags above. |
| 69 int content_status; | 71 int content_status; |
| 70 // The validation statuses of the Signed Certificate Timestamps (SCTs) | 72 // The validation statuses of the Signed Certificate Timestamps (SCTs) |
| 71 // of Certificate Transparency (CT) that were served with the | 73 // of Certificate Transparency (CT) that were served with the |
| 72 // main resource. | 74 // main resource. |
| 73 std::vector<net::ct::SCTVerifyStatus> sct_statuses; | 75 std::vector<net::ct::SCTVerifyStatus> sct_statuses; |
| 74 // True if PKP was bypassed due to a local trust anchor. | 76 // True if PKP was bypassed due to a local trust anchor. |
| 75 bool pkp_bypassed; | 77 bool pkp_bypassed; |
| 76 }; | 78 }; |
| 77 | 79 |
| 78 } // namespace content | 80 } // namespace content |
| 79 | 81 |
| 80 #endif // CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ | 82 #endif // CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ |
| OLD | NEW |