Index: net/cert/nss_cert_database.h |
diff --git a/net/cert/nss_cert_database.h b/net/cert/nss_cert_database.h |
index df52e589f3f70d1cd1e2a747286e240ff2ca0add..9873e6a674d9550ed31b98289442d063b4ecc726 100644 |
--- a/net/cert/nss_cert_database.h |
+++ b/net/cert/nss_cert_database.h |
@@ -13,6 +13,7 @@ |
#include "base/memory/ref_counted.h" |
#include "base/strings/string16.h" |
#include "crypto/scoped_nss_types.h" |
+#include "net/base/net_errors.h" |
#include "net/base/net_export.h" |
#include "net/cert/cert_type.h" |
#include "net/cert/x509_certificate.h" |
@@ -109,6 +110,12 @@ class NET_EXPORT NSSCertDatabase { |
// run even after the database is deleted. |
virtual void ListCerts(const ListCertsCallback& callback); |
+ // Asynchronously get a list of certificates in the certificate database of |
+ // the given slot. Note that the callback may be run even after the database |
+ // is deleted. |
+ virtual void ListCertsInSlot(const ListCertsCallback& callback, |
+ PK11SlotInfo* slot); |
+ |
// Get the default slot for public key data. |
virtual crypto::ScopedPK11Slot GetPublicSlot() const; |
@@ -228,6 +235,9 @@ class NET_EXPORT NSSCertDatabase { |
NSSCertDatabase(); |
virtual ~NSSCertDatabase(); |
+ static void ListCertsInSlotImpl(crypto::ScopedPK11Slot slot, |
+ CertificateList* certs); |
+ |
// Certificate listing implementation used by |ListCerts| and |ListCertsSync|. |
// Static so it may safely be used on the worker thread. |
static void ListCertsImpl(CertificateList* certs); |