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

Unified Diff: net/cert/nss_cert_database.h

Issue 2363653002: Cleanup unreachable cert adding code (Closed)
Patch Set: Created 4 years, 3 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 00e72f3f19b196703c65a49694b1891ab54bb611..506349b8de76c6df3adae9777d1138ddecc15397 100644
--- a/net/cert/nss_cert_database.h
+++ b/net/cert/nss_cert_database.h
@@ -42,18 +42,10 @@ class NET_EXPORT NSSCertDatabase {
public:
virtual ~Observer() {}
- // Will be called when a new certificate is added.
- // Called with |cert| == NULL after importing a list of certificates
- // in ImportFromPKCS12().
- virtual void OnCertAdded(const X509Certificate* cert) {}
-
- // Will be called when a certificate is removed.
- virtual void OnCertRemoved(const X509Certificate* cert) {}
-
// Will be called when a CA certificate is changed.
// Called with |cert| == NULL after importing a list of certificates
// in ImportCACerts().
- virtual void OnCACertChanged(const X509Certificate* cert) {}
+ virtual void OnCertDBChanged(const X509Certificate* cert) {}
protected:
Observer() {}
@@ -275,9 +267,7 @@ class NET_EXPORT NSSCertDatabase {
protected:
// Broadcasts notifications to all registered observers.
- void NotifyObserversOfCertAdded(const X509Certificate* cert);
- void NotifyObserversOfCertRemoved(const X509Certificate* cert);
- void NotifyObserversOfCACertChanged(const X509Certificate* cert);
+ void NotifyObserversCertDBChanged(const X509Certificate* cert);
private:
// Registers |observer| to receive notifications of certificate changes. The

Powered by Google App Engine
This is Rietveld 408576698