| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_NET_CRW_CERT_VERIFICATION_CONTROLLER_H_ | 5 #ifndef IOS_WEB_NET_CRW_CERT_VERIFICATION_CONTROLLER_H_ |
| 6 #define IOS_WEB_NET_CRW_CERT_VERIFICATION_CONTROLLER_H_ | 6 #define IOS_WEB_NET_CRW_CERT_VERIFICATION_CONTROLLER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #include "base/mac/scoped_cftyperef.h" | 10 #include "base/mac/scoped_cftyperef.h" |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 // Records that |cert| is permitted to be used for |host| in future calls to | 82 // Records that |cert| is permitted to be used for |host| in future calls to |
| 83 // |decideLoadPolicyForTrust:host:completionHandler:|. |host| should be in an | 83 // |decideLoadPolicyForTrust:host:completionHandler:|. |host| should be in an |
| 84 // ASCII-compatible form. Subsequent calls to | 84 // ASCII-compatible form. Subsequent calls to |
| 85 // |decideLoadPolicyForTrust:host:completionHandler:| for the same | 85 // |decideLoadPolicyForTrust:host:completionHandler:| for the same |
| 86 // |cert|/|host| tuple and same |status| (or a subset of the given |status|) | 86 // |cert|/|host| tuple and same |status| (or a subset of the given |status|) |
| 87 // will return CERT_ACCEPT_POLICY_RECOVERABLE_ERROR_ACCEPTED_BY_USER. | 87 // will return CERT_ACCEPT_POLICY_RECOVERABLE_ERROR_ACCEPTED_BY_USER. |
| 88 - (void)allowCert:(scoped_refptr<net::X509Certificate>)cert | 88 - (void)allowCert:(scoped_refptr<net::X509Certificate>)cert |
| 89 forHost:(NSString*)host | 89 forHost:(NSString*)host |
| 90 status:(net::CertStatus)status; | 90 status:(net::CertStatus)status; |
| 91 | 91 |
| 92 // Invalidates CRWCertVerificationController. Must always be called before | |
| 93 // object's deallocation. | |
| 94 - (void)shutDown; | |
| 95 | |
| 96 @end | 92 @end |
| 97 | 93 |
| 98 #endif // IOS_WEB_NET_CRW_CERT_VERIFICATION_CONTROLLER_H_ | 94 #endif // IOS_WEB_NET_CRW_CERT_VERIFICATION_CONTROLLER_H_ |
| OLD | NEW |