summaryrefslogtreecommitdiffstats
path: root/net/base/cert_database_win.cc
diff options
context:
space:
mode:
authorrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-19 04:12:30 +0000
committerrsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-09-19 04:12:30 +0000
commit4985961c9f74dadfd5c5119d6d8096346e80c351 (patch)
treef3702b6da016221700e253be038a449df56ce700 /net/base/cert_database_win.cc
parentf7f6100c83efab633fd95ead88dad16d6cde0cd7 (diff)
downloadchromium_src-4985961c9f74dadfd5c5119d6d8096346e80c351.zip
chromium_src-4985961c9f74dadfd5c5119d6d8096346e80c351.tar.gz
chromium_src-4985961c9f74dadfd5c5119d6d8096346e80c351.tar.bz2
Shuffle CertDatabase ctor/dtor so that NSS-specific functionality can be moved to NSS impl
Move the ctor and dtor of CertDatabase to the implementation specific files, along with moving the NSS-specific NSSCertDatabase observer into the _nss.cc. BUG=none Review URL: https://chromiumcodereview.appspot.com/10941005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@157500 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/base/cert_database_win.cc')
-rw-r--r--net/base/cert_database_win.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/net/base/cert_database_win.cc b/net/base/cert_database_win.cc
index 2471850..f0f0dbd 100644
--- a/net/base/cert_database_win.cc
+++ b/net/base/cert_database_win.cc
@@ -8,11 +8,18 @@
#include <wincrypt.h>
#pragma comment(lib, "crypt32.lib")
+#include "base/observer_list_threadsafe.h"
#include "net/base/net_errors.h"
#include "net/base/x509_certificate.h"
namespace net {
+CertDatabase::CertDatabase()
+ : observer_list_(new ObserverListThreadSafe<Observer>) {
+}
+
+CertDatabase::~CertDatabase() {}
+
int CertDatabase::CheckUserCert(X509Certificate* cert) {
if (!cert)
return ERR_CERT_INVALID;