Index: net/base/cert_database.h |
diff --git a/net/base/cert_database.h b/net/base/cert_database.h |
index 69290ab4ffbef51ac95ebfaf795b6bf55f51cea3..0e7bdbd30009a9db78fe8b12184208930c0e9466 100644 |
--- a/net/base/cert_database.h |
+++ b/net/base/cert_database.h |
@@ -17,6 +17,7 @@ |
namespace net { |
class CryptoModule; |
+typedef std::vector<scoped_refptr<CryptoModule> > CryptoModuleList; |
class X509Certificate; |
typedef std::vector<scoped_refptr<X509Certificate> > CertificateList; |
@@ -77,6 +78,10 @@ class CertDatabase { |
// The returned pointer must be stored in a scoped_refptr<CryptoModule>. |
CryptoModule* GetDefaultModule() const; |
+ // Get all modules. |
+ // If |need_rw| is true, only writable modules will be returned. |
+ void ListModules(CryptoModuleList* modules, bool need_rw) const; |
+ |
// Import certificates and private keys from PKCS #12 blob into the module. |
// Returns OK or a network error code such as ERR_PKCS12_IMPORT_BAD_PASSWORD |
// or ERR_PKCS12_IMPORT_ERROR. |