This source file includes following definitions.
- CheckUserCert
- AddUserCert
- OnAndroidKeyStoreChanged
- OnAndroidKeyChainChanged
#include "net/cert/cert_database.h"
#include "base/logging.h"
#include "base/observer_list_threadsafe.h"
#include "net/base/net_errors.h"
namespace net {
CertDatabase::CertDatabase()
: observer_list_(new ObserverListThreadSafe<Observer>) {
}
CertDatabase::~CertDatabase() {}
int CertDatabase::CheckUserCert(X509Certificate* cert) {
NOTIMPLEMENTED();
return ERR_NOT_IMPLEMENTED;
}
int CertDatabase::AddUserCert(X509Certificate* cert) {
NOTIMPLEMENTED();
return ERR_NOT_IMPLEMENTED;
}
void CertDatabase::OnAndroidKeyStoreChanged() {
NotifyObserversOfCertAdded(NULL);
}
void CertDatabase::OnAndroidKeyChainChanged() {
observer_list_->Notify(&Observer::OnCACertChanged,
scoped_refptr<X509Certificate>());
}
}