#ifndef CONTENT_PUBLIC_COMMON_SSL_STATUS_H_
#define CONTENT_PUBLIC_COMMON_SSL_STATUS_H_
#include "content/common/content_export.h"
#include "content/public/common/security_style.h"
#include "content/public/common/signed_certificate_timestamp_id_and_status.h"
#include "net/cert/cert_status_flags.h"
namespace content {
struct CONTENT_EXPORT SSLStatus {
enum ContentStatusFlags {
NORMAL_CONTENT = 0,
DISPLAYED_INSECURE_CONTENT = 1 << 0,
RAN_INSECURE_CONTENT = 1 << 1,
};
SSLStatus();
~SSLStatus();
bool Equals(const SSLStatus& status) const {
return security_style == status.security_style &&
cert_id == status.cert_id &&
cert_status == status.cert_status &&
security_bits == status.security_bits &&
content_status == status.content_status &&
signed_certificate_timestamp_ids ==
status.signed_certificate_timestamp_ids;
}
content::SecurityStyle security_style;
int cert_id;
net::CertStatus cert_status;
int security_bits;
int connection_status;
int content_status;
SignedCertificateTimestampIDStatusList signed_certificate_timestamp_ids;
};
}
#endif