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

Unified Diff: net/cert/cert_database.h

Issue 370633003: Break cyclic dependency between CertDatabase and NSSCertDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | net/cert/cert_database_nss.cc » ('j') | net/cert/nss_cert_database.cc » ('J')
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 865d685097d691e763c156c8cc714b995016f22f..1555b6fdce6d35abcd7615efa06a710b3db37781 100644
--- a/net/cert/cert_database.h
+++ b/net/cert/cert_database.h
@@ -16,8 +16,6 @@ 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.
@@ -94,9 +92,11 @@ class NET_EXPORT CertDatabase {
#endif
#if defined(USE_NSS)
- // Observe events from the |source| and forward them to observers of this
- // CertDatabase.
- void ObserveNSSCertDatabase(NSSCertDatabase* source);
+ // Returns an Observer which can be used to forward certificate events from
+ // another certificate database (currently NSSCertDatabase) to this database.
+ // Any On* method call on the observer triggers the same event on all
+ // observers of this database. The Observer is owned by this database.
+ Observer* GetObserver();
#endif
private:
« no previous file with comments | « no previous file | net/cert/cert_database_nss.cc » ('j') | net/cert/nss_cert_database.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698