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

Unified Diff: ios/web/net/crw_ssl_status_updater.h

Issue 2151693008: [ios] Use -[WKWebView serverTrust] instead of certificateChain on iOS 10. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Self review Created 4 years, 5 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 | « no previous file | ios/web/net/crw_ssl_status_updater.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/net/crw_ssl_status_updater.h
diff --git a/ios/web/net/crw_ssl_status_updater.h b/ios/web/net/crw_ssl_status_updater.h
index 48a1e77a454426cd8ba4780fb7078a710f6daf0d..9a37c7953ab2beafcb56c659e8de6add252a4ce3 100644
--- a/ios/web/net/crw_ssl_status_updater.h
+++ b/ios/web/net/crw_ssl_status_updater.h
@@ -6,7 +6,9 @@
#define IOS_WEB_NET_CRW_SSL_STATUS_UPDATER_H_
#import <Foundation/Foundation.h>
+#import <Security/Security.h>
+#include "base/mac/scoped_cftyperef.h"
#include "ios/web/public/security_style.h"
#include "net/cert/cert_status_flags.h"
@@ -38,7 +40,8 @@ class NavigationManager;
// obtained from |host|, |chain| and |hasOnlySecureContent| flag.
- (void)updateSSLStatusForNavigationItem:(web::NavigationItem*)navigationItem
withCertHost:(NSString*)host
- certChain:(NSArray*)chain
+ trust:
+ (base::ScopedCFTypeRef<SecTrustRef>)trust
hasOnlySecureContent:(BOOL)hasOnlySecureContent;
@end
@@ -56,9 +59,9 @@ typedef void (^StatusQueryHandler)(web::SecurityStyle, net::CertStatus);
// |completionHandler| is called asynchronously when web::SecurityStyle and
// net::CertStatus are computed.
- (void)SSLStatusUpdater:(CRWSSLStatusUpdater*)SSLStatusUpdater
- querySSLStatusForCertChain:(NSArray*)certChain
- host:(NSString*)host
- completionHandler:(StatusQueryHandler)completionHandler;
+ querySSLStatusForTrust:(base::ScopedCFTypeRef<SecTrustRef>)trust
+ host:(NSString*)host
+ completionHandler:(StatusQueryHandler)completionHandler;
@end
« no previous file with comments | « no previous file | ios/web/net/crw_ssl_status_updater.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698