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 "content/common/content_export.h" | 8 #include "content/common/content_export.h" |
9 #include "content/public/common/security_style.h" | 9 #include "content/public/common/security_style.h" |
10 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" | 10 #include "content/public/common/signed_certificate_timestamp_id_and_status.h" |
(...skipping 27 matching lines...) Expand all Loading... |
38 int cert_id, | 38 int cert_id, |
39 const SignedCertificateTimestampIDStatusList& | 39 const SignedCertificateTimestampIDStatusList& |
40 signed_certificate_timestamp_ids, | 40 signed_certificate_timestamp_ids, |
41 const net::SSLInfo& ssl_info); | 41 const net::SSLInfo& ssl_info); |
42 ~SSLStatus(); | 42 ~SSLStatus(); |
43 | 43 |
44 bool Equals(const SSLStatus& status) const { | 44 bool Equals(const SSLStatus& status) const { |
45 return security_style == status.security_style && | 45 return security_style == status.security_style && |
46 cert_id == status.cert_id && cert_status == status.cert_status && | 46 cert_id == status.cert_id && cert_status == status.cert_status && |
47 security_bits == status.security_bits && | 47 security_bits == status.security_bits && |
| 48 key_exchange_info == status.key_exchange_info && |
48 connection_status == status.connection_status && | 49 connection_status == status.connection_status && |
49 content_status == status.content_status && | 50 content_status == status.content_status && |
50 signed_certificate_timestamp_ids == | 51 signed_certificate_timestamp_ids == |
51 status.signed_certificate_timestamp_ids; | 52 status.signed_certificate_timestamp_ids; |
52 } | 53 } |
53 | 54 |
54 content::SecurityStyle security_style; | 55 content::SecurityStyle security_style; |
55 // A cert_id value of 0 indicates that it is unset or invalid. | 56 // A cert_id value of 0 indicates that it is unset or invalid. |
56 int cert_id; | 57 int cert_id; |
57 net::CertStatus cert_status; | 58 net::CertStatus cert_status; |
58 int security_bits; | 59 int security_bits; |
| 60 int key_exchange_info; |
59 int connection_status; | 61 int connection_status; |
60 // A combination of the ContentStatusFlags above. | 62 // A combination of the ContentStatusFlags above. |
61 int content_status; | 63 int content_status; |
62 SignedCertificateTimestampIDStatusList signed_certificate_timestamp_ids; | 64 SignedCertificateTimestampIDStatusList signed_certificate_timestamp_ids; |
63 }; | 65 }; |
64 | 66 |
65 } // namespace content | 67 } // namespace content |
66 | 68 |
67 #endif // CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ | 69 #endif // CONTENT_PUBLIC_COMMON_SSL_STATUS_H_ |
OLD | NEW |