Chromium Code Reviews| Index: net/cert/nss_cert_database.h |
| diff --git a/net/cert/nss_cert_database.h b/net/cert/nss_cert_database.h |
| index f52995e81de4a6de2c430aa07e85cbb6b4a680e8..d7f5a302e279ca70932558c95934ff7273d91368 100644 |
| --- a/net/cert/nss_cert_database.h |
| +++ b/net/cert/nss_cert_database.h |
| @@ -41,10 +41,9 @@ class NET_EXPORT NSSCertDatabase { |
| public: |
| virtual ~Observer() {} |
| - // Will be called when a CA certificate is changed. |
| - // Called with |cert| == NULL after importing a list of certificates |
| - // in ImportCACerts(). |
| - virtual void OnCertDBChanged(const X509Certificate* cert) {} |
| + // Will be called when a certificate is added, removed, or changed trust |
|
svaldez
2017/02/13 15:59:40
Wording seems a bit odd.
"or trust settings are c
mattm
2017/02/13 20:30:09
Done.
|
| + // settings. |
| + virtual void OnCertDBChanged() {} |
| protected: |
| Observer() {} |
| @@ -246,7 +245,7 @@ class NET_EXPORT NSSCertDatabase { |
| protected: |
| // Broadcasts notifications to all registered observers. |
| - void NotifyObserversCertDBChanged(const X509Certificate* cert); |
| + void NotifyObserversCertDBChanged(); |
| private: |
| // Registers |observer| to receive notifications of certificate changes. The |
| @@ -261,10 +260,9 @@ class NET_EXPORT NSSCertDatabase { |
| // on the same thread on which AddObserver() was called. |
| void RemoveObserver(Observer* observer); |
| - // Notifies observers of the removal of |cert| and calls |callback| with |
| + // Notifies observers of the removal of a cert and calls |callback| with |
| // |success| as argument. |
| - void NotifyCertRemovalAndCallBack(scoped_refptr<X509Certificate> cert, |
| - const DeleteCertCallback& callback, |
| + void NotifyCertRemovalAndCallBack(const DeleteCertCallback& callback, |
| bool success); |
| // Certificate removal implementation used by |DeleteCertAndKey*|. Static so |