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

Unified Diff: net/cert/cert_database.h

Issue 18121007: *WIP* Store NSS slots per profile. Move keygen to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: certdb: handle GetCertTrust and IsUntrusted, failed attempt to handle SetCertTrust Created 7 years, 1 month 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
« no previous file with comments | « net/base/keygen_handler_unittest.cc ('k') | net/cert/cert_database_nss.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cert/cert_database.h
diff --git a/net/cert/cert_database.h b/net/cert/cert_database.h
index 7f62964b94dedb2244e1790e2c9d70449040cc55..1f213c883f24940d5283af17313cdea5b2160050 100644
--- a/net/cert/cert_database.h
+++ b/net/cert/cert_database.h
@@ -16,6 +16,8 @@ template <class ObserverType> class ObserverListThreadSafe;
namespace net {
+class NSSCertDatabase;
+
// This class provides cross-platform functions to verify and add user
// certificates, and to observe changes to the underlying certificate stores.
@@ -84,6 +86,13 @@ class NET_EXPORT CertDatabase {
void OnAndroidKeyChainChanged();
#endif
+#if defined(USE_NSS)
+ // Observe NSSCertDatabase events and forward them to observers of
+ // CertDatabase. It is assumed that the CertDatabase will outlive the
+ // NSSCertDatabase, so we don't need to bother with unregistering. //XXX
+ void AddSource(NSSCertDatabase* nss_cert_db);
+#endif
+
private:
friend struct DefaultSingletonTraits<CertDatabase>;
« no previous file with comments | « net/base/keygen_handler_unittest.cc ('k') | net/cert/cert_database_nss.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698