1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef IOS_WEB_PUBLIC_SSL_STATUS_H_
6 #define IOS_WEB_PUBLIC_SSL_STATUS_H_
8 #include "ios/web/public/security_style.h"
9 #include "net/cert/cert_status_flags.h"
13 // Collects the SSL information for this NavigationItem.
15 // Flags used for the page security content status.
16 enum ContentStatusFlags
{
17 // HTTP page, or HTTPS page with no insecure content.
20 // HTTPS page containing "displayed" HTTP resources (e.g. images, CSS).
21 DISPLAYED_INSECURE_CONTENT
= 1 << 0,
23 // The RAN_INSECURE_CONTENT flag is intentionally omitted on iOS because
24 // there is no way to tell when insecure content is run in a web view.
30 bool Equals(const SSLStatus
& status
) const {
31 return security_style
== status
.security_style
&&
32 cert_id
== status
.cert_id
&&
33 cert_status
== status
.cert_status
&&
34 security_bits
== status
.security_bits
&&
35 content_status
== status
.content_status
;
38 web::SecurityStyle security_style
;
40 net::CertStatus cert_status
;
42 int connection_status
;
43 // A combination of the ContentStatusFlags above.
49 #endif // IOS_WEB_PUBLIC_SSL_STATUS_H_