| Index: net/cert/nss_cert_database.h
|
| diff --git a/net/cert/nss_cert_database.h b/net/cert/nss_cert_database.h
|
| index 94f1f20fb9c41d0648975b53da41f21a9ab189ea..38960f5ed3ef0a64cf57f14861f46b6fc1b74f31 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);
|
|
|