| 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" |
| 11 #import "base/memory/ref_counted.h" | 11 #include "base/memory/ref_counted.h" |
| 12 #include "ios/web/public/security_style.h" | 12 #include "ios/web/public/security_style.h" |
| 13 #include "net/cert/cert_status_flags.h" | 13 #include "net/cert/cert_status_flags.h" |
| 14 | 14 |
| 15 namespace net { | 15 namespace net { |
| 16 class X509Certificate; | 16 class X509Certificate; |
| 17 } | 17 } |
| 18 | 18 |
| 19 namespace web { | 19 namespace web { |
| 20 | 20 |
| 21 class BrowserState; | 21 class BrowserState; |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 @end | 92 @end |
| 93 | 93 |
| 94 #endif // IOS_WEB_NET_CRW_CERT_VERIFICATION_CONTROLLER_H_ | 94 #endif // IOS_WEB_NET_CRW_CERT_VERIFICATION_CONTROLLER_H_ |
| OLD | NEW |