Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2987)

Unified Diff: chrome/browser/chromeos/certificate_provider/certificate_provider.h

Issue 1274143002: ClientCertStoreChromeOS: support additional non-platform certs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Refactored ClientCertStoreNSS. Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698