OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "net/base/cert_database.h" | 5 #include "net/cert/cert_database.h" |
6 | 6 |
7 #include <windows.h> | 7 #include <windows.h> |
8 #include <wincrypt.h> | 8 #include <wincrypt.h> |
9 #pragma comment(lib, "crypt32.lib") | 9 #pragma comment(lib, "crypt32.lib") |
10 | 10 |
11 #include "base/observer_list_threadsafe.h" | 11 #include "base/observer_list_threadsafe.h" |
12 #include "net/base/net_errors.h" | 12 #include "net/base/net_errors.h" |
13 #include "net/base/x509_certificate.h" | 13 #include "net/cert/x509_certificate.h" |
14 | 14 |
15 namespace net { | 15 namespace net { |
16 | 16 |
17 CertDatabase::CertDatabase() | 17 CertDatabase::CertDatabase() |
18 : observer_list_(new ObserverListThreadSafe<Observer>) { | 18 : observer_list_(new ObserverListThreadSafe<Observer>) { |
19 } | 19 } |
20 | 20 |
21 CertDatabase::~CertDatabase() {} | 21 CertDatabase::~CertDatabase() {} |
22 | 22 |
23 int CertDatabase::CheckUserCert(X509Certificate* cert) { | 23 int CertDatabase::CheckUserCert(X509Certificate* cert) { |
(...skipping 28 matching lines...) Expand all Loading... |
52 CertCloseStore(cert_db, 0); | 52 CertCloseStore(cert_db, 0); |
53 | 53 |
54 if (!added) | 54 if (!added) |
55 return ERR_ADD_USER_CERT_FAILED; | 55 return ERR_ADD_USER_CERT_FAILED; |
56 | 56 |
57 NotifyObserversOfCertAdded(cert); | 57 NotifyObserversOfCertAdded(cert); |
58 return OK; | 58 return OK; |
59 } | 59 } |
60 | 60 |
61 } // namespace net | 61 } // namespace net |
OLD | NEW |