OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_ |
6 #define CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_ | 6 #define CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 | 51 |
52 // net::ClientCertStore: | 52 // net::ClientCertStore: |
53 void GetClientCerts(const net::SSLCertRequestInfo& cert_request_info, | 53 void GetClientCerts(const net::SSLCertRequestInfo& cert_request_info, |
54 const ClientCertListCallback& callback) override; | 54 const ClientCertListCallback& callback) override; |
55 | 55 |
56 private: | 56 private: |
57 void GotAdditionalCerts(const net::SSLCertRequestInfo* request, | 57 void GotAdditionalCerts(const net::SSLCertRequestInfo* request, |
58 const ClientCertListCallback& callback, | 58 const ClientCertListCallback& callback, |
59 const net::CertificateList& additional_certs); | 59 const net::CertificateList& additional_certs); |
60 | 60 |
61 net::CertificateList GetAndFilterCertsOnWorkerThread( | 61 net::ClientCertIdentityList GetAndFilterCertsOnWorkerThread( |
62 std::unique_ptr<crypto::CryptoModuleBlockingPasswordDelegate> | 62 scoped_refptr<crypto::CryptoModuleBlockingPasswordDelegate> |
63 password_delegate, | 63 password_delegate, |
64 const net::SSLCertRequestInfo* request, | 64 const net::SSLCertRequestInfo* request, |
65 const net::CertificateList& additional_certs); | 65 const net::CertificateList& additional_certs); |
66 | 66 |
67 std::unique_ptr<CertificateProvider> cert_provider_; | 67 std::unique_ptr<CertificateProvider> cert_provider_; |
68 std::unique_ptr<CertFilter> cert_filter_; | 68 std::unique_ptr<CertFilter> cert_filter_; |
69 | 69 |
70 // The factory for creating the delegate for requesting a password to a | 70 // The factory for creating the delegate for requesting a password to a |
71 // PKCS#11 token. May be null. | 71 // PKCS#11 token. May be null. |
72 PasswordDelegateFactory password_delegate_factory_; | 72 PasswordDelegateFactory password_delegate_factory_; |
73 | 73 |
74 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS); | 74 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS); |
75 }; | 75 }; |
76 | 76 |
77 } // namespace chromeos | 77 } // namespace chromeos |
78 | 78 |
79 #endif // CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_ | 79 #endif // CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CHROMEOS_H_ |
OLD | NEW |