OLD | NEW |
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_PUBLIC_CERTIFICATE_POLICY_CACHE_H_ | 5 #ifndef IOS_WEB_PUBLIC_CERTIFICATE_POLICY_CACHE_H_ |
6 #define IOS_WEB_PUBLIC_CERTIFICATE_POLICY_CACHE_H_ | 6 #define IOS_WEB_PUBLIC_CERTIFICATE_POLICY_CACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
| 11 #include "base/macros.h" |
11 #include "ios/web/public/cert_policy.h" | 12 #include "ios/web/public/cert_policy.h" |
12 #include "net/cert/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
13 | 14 |
14 namespace web { | 15 namespace web { |
15 | 16 |
16 // A manager for certificate policy decisions for hosts, used to remember | 17 // A manager for certificate policy decisions for hosts, used to remember |
17 // decisions about how to handle problematic certs. | 18 // decisions about how to handle problematic certs. |
18 // This class is thread-safe only in that in can be created and passed around | 19 // This class is thread-safe only in that in can be created and passed around |
19 // on any thread; the policy-related methods can only be called from the IO | 20 // on any thread; the policy-related methods can only be called from the IO |
20 // thread. | 21 // thread. |
(...skipping 26 matching lines...) Expand all Loading... |
47 | 48 |
48 // Certificate policies for each host. | 49 // Certificate policies for each host. |
49 std::map<std::string, CertPolicy> cert_policy_for_host_; | 50 std::map<std::string, CertPolicy> cert_policy_for_host_; |
50 | 51 |
51 DISALLOW_COPY_AND_ASSIGN(CertificatePolicyCache); | 52 DISALLOW_COPY_AND_ASSIGN(CertificatePolicyCache); |
52 }; | 53 }; |
53 | 54 |
54 } // namespace web | 55 } // namespace web |
55 | 56 |
56 #endif // IOS_WEB_PUBLIC_CERTIFICATE_POLICY_CACHE_H_ | 57 #endif // IOS_WEB_PUBLIC_CERTIFICATE_POLICY_CACHE_H_ |
OLD | NEW |