| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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 IOS_WEB_PUBLIC_SSL_STATUS_H_ | 5 #ifndef IOS_WEB_PUBLIC_SSL_STATUS_H_ |
| 6 #define IOS_WEB_PUBLIC_SSL_STATUS_H_ | 6 #define IOS_WEB_PUBLIC_SSL_STATUS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "ios/web/public/security_style.h" | 10 #include "ios/web/public/security_style.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 // HTTPS page containing "displayed" HTTP resources (e.g. images, CSS). | 23 // HTTPS page containing "displayed" HTTP resources (e.g. images, CSS). |
| 24 DISPLAYED_INSECURE_CONTENT = 1 << 0, | 24 DISPLAYED_INSECURE_CONTENT = 1 << 0, |
| 25 | 25 |
| 26 // The RAN_INSECURE_CONTENT flag is intentionally omitted on iOS because | 26 // The RAN_INSECURE_CONTENT flag is intentionally omitted on iOS because |
| 27 // there is no way to tell when insecure content is run in a web view. | 27 // there is no way to tell when insecure content is run in a web view. |
| 28 | 28 |
| 29 // HTTP page containing a password input, used to adjust UI on nonsecure | 29 // HTTP page containing a password input, used to adjust UI on nonsecure |
| 30 // pages that collect sensitive data. | 30 // pages that collect sensitive data. |
| 31 DISPLAYED_PASSWORD_FIELD_ON_HTTP = 1 << 4, | 31 DISPLAYED_PASSWORD_FIELD_ON_HTTP = 1 << 4, |
| 32 |
| 33 // HTTP page containing a credit card input, used to adjust UI on nonsecure |
| 34 // pages that collect sensitive data. |
| 35 DISPLAYED_CREDIT_CARD_FIELD_ON_HTTP = 1 << 5, |
| 32 }; | 36 }; |
| 33 | 37 |
| 34 SSLStatus(); | 38 SSLStatus(); |
| 35 SSLStatus(const SSLStatus& other); | 39 SSLStatus(const SSLStatus& other); |
| 36 ~SSLStatus(); | 40 ~SSLStatus(); |
| 37 | 41 |
| 38 bool Equals(const SSLStatus& status) const { | 42 bool Equals(const SSLStatus& status) const { |
| 39 return security_style == status.security_style && | 43 return security_style == status.security_style && |
| 40 !!certificate == !!status.certificate && | 44 !!certificate == !!status.certificate && |
| 41 (certificate ? certificate->Equals(status.certificate.get()) | 45 (certificate ? certificate->Equals(status.certificate.get()) |
| (...skipping 14 matching lines...) Expand all Loading... |
| 56 // Host which was used for |cert_status| calculation. It is not an actual part | 60 // Host which was used for |cert_status| calculation. It is not an actual part |
| 57 // of SSL status, hence it's not taken into account in |Equals| method. | 61 // of SSL status, hence it's not taken into account in |Equals| method. |
| 58 // Used to check if |cert_status| is still valid or needs to be recalculated | 62 // Used to check if |cert_status| is still valid or needs to be recalculated |
| 59 // (e.g. after redirect). | 63 // (e.g. after redirect). |
| 60 std::string cert_status_host; | 64 std::string cert_status_host; |
| 61 }; | 65 }; |
| 62 | 66 |
| 63 } // namespace web | 67 } // namespace web |
| 64 | 68 |
| 65 #endif // IOS_WEB_PUBLIC_SSL_STATUS_H_ | 69 #endif // IOS_WEB_PUBLIC_SSL_STATUS_H_ |
| OLD | NEW |