Index: ios/web/net/crw_cert_policy_cache.h |
diff --git a/ios/web/net/crw_cert_policy_cache.h b/ios/web/net/crw_cert_policy_cache.h |
deleted file mode 100644 |
index 7e1bbfb4fa20105f7dc6f5a0c70c3956507f65f8..0000000000000000000000000000000000000000 |
--- a/ios/web/net/crw_cert_policy_cache.h |
+++ /dev/null |
@@ -1,45 +0,0 @@ |
-// Copyright 2015 The Chromium Authors. All rights reserved. |
-// Use of this source code is governed by a BSD-style license that can be |
-// found in the LICENSE file. |
- |
-#import <Foundation/Foundation.h> |
- |
-#include "base/ios/block_types.h" |
-#include "base/memory/ref_counted.h" |
-#include "ios/web/public/cert_policy.h" |
-#include "net/cert/cert_status_flags.h" |
- |
-namespace net { |
-class X509Certificate; |
-} |
- |
-namespace web { |
-class CertificatePolicyCache; |
-} |
- |
-// Adapter for web::CertificatePolicyCache, which is used to remember decisions |
-// about how to handle invalid certs that have been given a user exception. |
-// web::CertificatePolicyCache can be used only on IO thread while |
-// CRWCertPolicyCache is threadsafe and can be used on any thread. |
-@interface CRWCertPolicyCache : NSObject |
- |
-// Unavailable, use |initWithCache:| instead. |
-- (instancetype)init NS_UNAVAILABLE; |
- |
-// Initializes CRWCertPolicyCache. |
-- (instancetype)initWithCache:(scoped_refptr<web::CertificatePolicyCache>)cache |
- NS_DESIGNATED_INITIALIZER; |
- |
-// Asynchronously queries whether |cert| with |status| is allowed or denied for |
-// |host|. |handler| can not be null and is always called on the main thread. |
-- (void)queryJudgementForCert:(scoped_refptr<net::X509Certificate>)cert |
- forHost:(NSString*)host |
- status:(net::CertStatus)certStatus |
- completionHandler:(void (^)(web::CertPolicy::Judgment))handler; |
- |
-// Records that |cert| is permitted to be used for |host| in the future. |
-- (void)allowCert:(scoped_refptr<net::X509Certificate>)cert |
- forHost:(NSString*)host |
- status:(net::CertStatus)status; |
- |
-@end |