OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef IOS_WEB_PUBLIC_SSL_STATUS_H_ |
| 6 #define IOS_WEB_PUBLIC_SSL_STATUS_H_ |
| 7 |
| 8 #include "ios/web/public/security_style.h" |
| 9 #include "net/cert/cert_status_flags.h" |
| 10 |
| 11 namespace web { |
| 12 |
| 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, |
| 19 |
| 20 // HTTPS page containing "displayed" HTTP resources (e.g. images, CSS). |
| 21 DISPLAYED_INSECURE_CONTENT = 1 << 0, |
| 22 |
| 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. |
| 25 }; |
| 26 |
| 27 SSLStatus(); |
| 28 ~SSLStatus(); |
| 29 |
| 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; |
| 36 } |
| 37 |
| 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; |
| 45 }; |
| 46 |
| 47 } // namespace web |
| 48 |
| 49 #endif // IOS_WEB_PUBLIC_SSL_STATUS_H_ |
OLD | NEW |