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

Unified Diff: net/cert/nss_cert_database.h

Issue 214863002: Extension API enterprise.platformKeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Enabled restriction to extensions force-installed by policy. Created 6 years, 7 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/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);

Powered by Google App Engine
This is Rietveld 408576698