Chromium Code Reviews| Index: chrome/browser/chromeos/certificate_provider/certificate_provider.h |
| diff --git a/chrome/browser/chromeos/certificate_provider/certificate_provider.h b/chrome/browser/chromeos/certificate_provider/certificate_provider.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..78c4f2876bf7723bc7e3bbe0270ddea9fd08aa90 |
| --- /dev/null |
| +++ b/chrome/browser/chromeos/certificate_provider/certificate_provider.h |
| @@ -0,0 +1,36 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ |
| +#define CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ |
| + |
| +#include <vector> |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/ref_counted.h" |
| + |
| +namespace net { |
| +class X509Certificate; |
| +typedef std::vector<scoped_refptr<X509Certificate>> CertificateList; |
|
davidben
2015/08/20 00:40:34
Per https://codereview.chromium.org/994743003/diff
pneubeck (no reviews)
2015/08/20 07:18:23
Done. I think we should fix all such existing forw
|
| +} |
| + |
| +namespace chromeos { |
| + |
| +class CertificateProvider { |
| + public: |
| + CertificateProvider() {} |
| + virtual ~CertificateProvider() {} |
| + |
| + virtual void GetCertificates( |
| + const base::Callback<void(const net::CertificateList&)>& callback) = 0; |
| + |
| + virtual scoped_ptr<CertificateProvider> Copy() = 0; |
| + |
| + private: |
| + DISALLOW_COPY_AND_ASSIGN(CertificateProvider); |
| +}; |
| + |
| +} // namespace chromeos |
| + |
| +#endif // CHROME_BROWSER_CHROMEOS_CERTIFICATE_PROVIDER_CERTIFICATE_PROVIDER_H_ |