Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Unified Diff: ios/web/public/ssl_status.h

Issue 2327433002: Stop using CertStore which is not compatible with PlzNavigate. (Closed)
Patch Set: remove cert_store on ios Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ios/web/public/cert_store.h ('k') | ios/web/public/ssl_status.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/ssl_status.h
diff --git a/ios/web/public/ssl_status.h b/ios/web/public/ssl_status.h
index 18549e9d07ec0072184b08862c4b4ada879a97f2..26446e932a61d9dfa955866917eb07da441967d1 100644
--- a/ios/web/public/ssl_status.h
+++ b/ios/web/public/ssl_status.h
@@ -9,6 +9,7 @@
#include "ios/web/public/security_style.h"
#include "net/cert/cert_status_flags.h"
+#include "net/cert/x509_certificate.h"
namespace web {
@@ -27,19 +28,22 @@ struct SSLStatus {
};
SSLStatus();
+ SSLStatus(const SSLStatus& other);
~SSLStatus();
bool Equals(const SSLStatus& status) const {
return security_style == status.security_style &&
- cert_id == status.cert_id &&
+ !!certificate == !!status.certificate &&
+ (certificate ? certificate->Equals(status.certificate.get())
+ : true) &&
cert_status == status.cert_status &&
security_bits == status.security_bits &&
content_status == status.content_status;
- // |cert_status_host| is not used for comparison intentionally.
+ // |cert_status_host| is not used for comparison intentionally.
}
web::SecurityStyle security_style;
- int cert_id;
+ scoped_refptr<net::X509Certificate> certificate;
net::CertStatus cert_status;
int security_bits;
int connection_status;
« no previous file with comments | « ios/web/public/cert_store.h ('k') | ios/web/public/ssl_status.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698