QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / ios / web / public / ssl_status.h
blob56f3d11fc3d8432ad3336fa06c671c37f30fb2ef
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"
11 namespace web {
13 // Collects the SSL information for this NavigationItem.
14 struct SSLStatus {
15 // Flags used for the page security content status.
16 enum ContentStatusFlags {
17 // HTTP page, or HTTPS page with no insecure content.
18 NORMAL_CONTENT = 0,
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.
27 SSLStatus();
28 ~SSLStatus();
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;
39 int cert_id;
40 net::CertStatus cert_status;
41 int security_bits;
42 int connection_status;
43 // A combination of the ContentStatusFlags above.
44 int content_status;
47 } // namespace web
49 #endif // IOS_WEB_PUBLIC_SSL_STATUS_H_