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

Side by Side Diff: ios/web/navigation/crw_session_certificate_policy_manager.h

Issue 2703923002: Remove CRWSessionEntry from CRWSessionCertificatePolicyManager. (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_NAVIGATION_CRW_SESSION_CERTIFICATE_POLICY_MANAGER_H_ 5 #ifndef IOS_WEB_NAVIGATION_CRW_SESSION_CERTIFICATE_POLICY_MANAGER_H_
6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CERTIFICATE_POLICY_MANAGER_H_ 6 #define IOS_WEB_NAVIGATION_CRW_SESSION_CERTIFICATE_POLICY_MANAGER_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include <string> 9 #include <string>
10 10
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "net/cert/cert_status_flags.h" 12 #include "net/cert/cert_status_flags.h"
13 13
14 @class CRWSessionEntry;
15
16 namespace net { 14 namespace net {
17 class X509Certificate; 15 class X509Certificate;
18 } 16 }
19 17
20 namespace web { 18 namespace web {
21 class CertificatePolicyCache; 19 class CertificatePolicyCache;
22 } 20 }
23 21
24 // The CRWSessionCertificatePolicyManager keeps track of the certificates that 22 // The CRWSessionCertificatePolicyManager keeps track of the certificates that
25 // have been manually allowed by the user despite the errors. 23 // have been manually allowed by the user despite the errors.
26 // The CRWSessionCertificatePolicyManager lives on the main thread. 24 // The CRWSessionCertificatePolicyManager lives on the main thread.
27 @interface CRWSessionCertificatePolicyManager : NSObject <NSCoding, NSCopying> 25 @interface CRWSessionCertificatePolicyManager : NSObject <NSCoding, NSCopying>
28 26
29 - (void)registerAllowedCertificate: 27 - (void)registerAllowedCertificate:
30 (const scoped_refptr<net::X509Certificate>)certificate 28 (const scoped_refptr<net::X509Certificate>)certificate
31 forHost:(const std::string&)host 29 forHost:(const std::string&)host
32 status:(net::CertStatus)status; 30 status:(net::CertStatus)status;
33 31
34 // Removes all the certificates associated with this session. Note that this has 32 // Removes all the certificates associated with this session. Note that this has
35 // no effect on the policy cache service. 33 // no effect on the policy cache service.
36 - (void)clearCertificates; 34 - (void)clearCertificates;
37 35
38 // Copies the certificate polices for the session into |cache|. 36 // Copies the certificate polices for the session into |cache|.
39 - (void)updateCertificatePolicyCache: 37 - (void)updateCertificatePolicyCache:
40 (const scoped_refptr<web::CertificatePolicyCache>&)cache; 38 (const scoped_refptr<web::CertificatePolicyCache>&)cache;
41 39
42 @end 40 @end
43 41
44 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CERTIFICATE_POLICY_MANAGER_H_ 42 #endif // IOS_WEB_NAVIGATION_CRW_SESSION_CERTIFICATE_POLICY_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698