WKWebView: Adapter to use web::CertificatePolicyCache on the main thread
commit2ad398ae4f8290449ad57579ad4d96c35f2a2d19
authoreugenebut <eugenebut@chromium.org>
Wed, 29 Jul 2015 00:47:42 +0000 (28 17:47 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 29 Jul 2015 00:48:28 +0000 (29 00:48 +0000)
treeddcc03592caa2a404e59013245a7c28ad16dceaf
parent2d58b2ca7458aef8afbc9722b4d916e9b98d7860
WKWebView: Adapter to use web::CertificatePolicyCache on the main thread

web::CertificatePolicyCache is intended to be used on IO thread, while
in WKWebView-based app cache will be used on the main thread.

Also if Chrome for iOS will use SecTrustRef for certs verification then
this adapter will translate SectTrust errors to CertStatus.

BUG=462427

Review URL: https://codereview.chromium.org/1259773002

Cr-Commit-Position: refs/heads/master@{#340825}
ios/web/ios_web.gyp
ios/web/ios_web_unittests.gyp
ios/web/net/crw_cert_policy_cache.h [new file with mode: 0644]
ios/web/net/crw_cert_policy_cache.mm [new file with mode: 0644]
ios/web/net/crw_cert_policy_cache_unittest.mm [new file with mode: 0644]