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

Unified Diff: net/ssl/client_cert_store_chromeos.h

Issue 1274143002: ClientCertStoreChromeOS: support additional non-platform certs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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: net/ssl/client_cert_store_chromeos.h
diff --git a/net/ssl/client_cert_store_chromeos.h b/net/ssl/client_cert_store_chromeos.h
index 2bc359cd9a5f3a0c251bacf4281bc90d2d52c1ed..c58f7ba3f9043ddfabe4871cf451b117086dce33 100644
--- a/net/ssl/client_cert_store_chromeos.h
+++ b/net/ssl/client_cert_store_chromeos.h
@@ -33,9 +33,11 @@ class NET_EXPORT ClientCertStoreChromeOS : public ClientCertStoreNSS {
const scoped_refptr<X509Certificate>& cert) const = 0;
};
- // This ClientCertStore will return only client certs that pass the filter
- // |cert_filter|.
+ // This ClientCertStore will return client certs from NSS certificate
+ // databases that pass the filter |cert_filter| and unconditionally the certs
+ // from |additional_certs|.
ClientCertStoreChromeOS(
+ const CertificateList& additional_certs,
Ryan Sleevi 2015/08/07 23:51:09 Are you sure this is the right pattern? I don't be
pneubeck (no reviews) 2015/08/10 12:09:56 Yeah, I thought about that point as well. As far a
davidben 2015/08/10 21:54:00 Honestly, this whole ClientCertStore thing is pret
pneubeck (no reviews) 2015/08/13 12:25:24 Done.
scoped_ptr<CertFilter> cert_filter,
const PasswordDelegateFactory& password_delegate_factory);
~ClientCertStoreChromeOS() override;
@@ -57,6 +59,7 @@ class NET_EXPORT ClientCertStoreChromeOS : public ClientCertStoreNSS {
CertificateList* selected_certs,
const base::Closure& callback);
+ const CertificateList additional_certs_;
scoped_ptr<CertFilter> cert_filter_;
DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS);

Powered by Google App Engine
This is Rietveld 408576698