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 CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 11 #include "net/ssl/client_cert_identity.h" |
12 #include "net/cert/x509_certificate.h" | |
13 | 12 |
14 namespace chromeos { | 13 namespace chromeos { |
15 | 14 |
16 class CertificateProvider { | 15 class CertificateProvider { |
17 public: | 16 public: |
18 CertificateProvider() {} | 17 CertificateProvider() {} |
19 virtual ~CertificateProvider() {} | 18 virtual ~CertificateProvider() {} |
20 | 19 |
21 virtual void GetCertificates( | 20 virtual void GetCertificates( |
22 const base::Callback<void(const net::CertificateList&)>& callback) = 0; | 21 const base::Callback<void(net::ClientCertIdentityList)>& callback) = 0; |
23 | 22 |
24 virtual std::unique_ptr<CertificateProvider> Copy() = 0; | 23 virtual std::unique_ptr<CertificateProvider> Copy() = 0; |
25 | 24 |
26 private: | 25 private: |
27 DISALLOW_COPY_AND_ASSIGN(CertificateProvider); | 26 DISALLOW_COPY_AND_ASSIGN(CertificateProvider); |
28 }; | 27 }; |
29 | 28 |
30 } // namespace chromeos | 29 } // namespace chromeos |
31 | 30 |
32 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ | 31 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ |
OLD | NEW |