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

Unified Diff: net/cert/cert_database.h

Issue 27500004: Listen for new system certificates. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Re-upload Created 7 years, 2 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/cert_database.h
diff --git a/net/cert/cert_database.h b/net/cert/cert_database.h
index c4ead812f2f6e500b5adb230eb92ef323beec012..7791e894a41b2b4ce955f11305e28b0a2d7d2b36 100644
--- a/net/cert/cert_database.h
+++ b/net/cert/cert_database.h
@@ -43,6 +43,9 @@ class NET_EXPORT CertDatabase {
// Will be called when a certificate's trust is changed.
virtual void OnCertTrustChanged(const X509Certificate* cert) {}
+ // Will be called when the database changed in a non specific manner.
+ virtual void OnDatabaseUpdated() {}
wtc 2013/10/16 15:37:34 Nit: a non specific manner => an unspecified manne
wtc 2013/10/16 15:39:31 Please mention why this broad notification is nece
qsr 2013/10/16 16:02:09 Done.
+
protected:
Observer() {}
@@ -78,6 +81,12 @@ class NET_EXPORT CertDatabase {
void SetMessageLoopForKeychainEvents();
#endif
+#if defined(OS_ANDROID)
+ // On android, the system database is used. When the system notifies the
+ // application that the certificates changed, the observers must be notified.
+ void NotifyObserversOfDatabaseUpdated();
wtc 2013/10/16 15:37:34 Can this method be declared private, along with th
qsr 2013/10/16 16:02:09 Not really. It needs to be called externally by th
wtc 2013/10/16 18:33:24 Not when I asked you that question. As a code revi
+#endif
+
private:
friend struct DefaultSingletonTraits<CertDatabase>;

Powered by Google App Engine
This is Rietveld 408576698