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
3 // found in the LICENSE file.
5 #ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_
6 #define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_
10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h"
12 #include "net/cert/x509_certificate.h"
16 class CertificateProvider
{
18 CertificateProvider() {}
19 virtual ~CertificateProvider() {}
21 virtual void GetCertificates(
22 const base::Callback
<void(const net::CertificateList
&)>& callback
) = 0;
24 virtual scoped_ptr
<CertificateProvider
> Copy() = 0;
27 DISALLOW_COPY_AND_ASSIGN(CertificateProvider
);
30 } // namespace chromeos
32 #endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_