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

Side by Side Diff: net/base/cert_database.cc

Issue 9476035: Make CertVerifier a pure virtual interface. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Win shared fix Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/base/cert_database.h ('k') | net/base/cert_verifier.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/base/cert_database.h"
6 6
7 #include "base/memory/singleton.h" 7 #include "base/memory/singleton.h"
8 #include "base/observer_list_threadsafe.h" 8 #include "base/observer_list_threadsafe.h"
9 #include "net/base/x509_certificate.h"
10 9
11 namespace net { 10 namespace net {
12 11
13 CertDatabase::ImportCertFailure::ImportCertFailure( 12 CertDatabase::ImportCertFailure::ImportCertFailure(
14 X509Certificate* cert, int err) 13 X509Certificate* cert, int err)
15 : certificate(cert), net_error(err) { 14 : certificate(cert), net_error(err) {
16 } 15 }
17 16
18 CertDatabase::ImportCertFailure::~ImportCertFailure() { 17 CertDatabase::ImportCertFailure::~ImportCertFailure() {
19 } 18 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 &CertDatabase::Observer::OnUserCertRemoved, make_scoped_refptr(cert)); 56 &CertDatabase::Observer::OnUserCertRemoved, make_scoped_refptr(cert));
58 } 57 }
59 58
60 void CertDatabase::NotifyObserversOfCertTrustChanged( 59 void CertDatabase::NotifyObserversOfCertTrustChanged(
61 const X509Certificate* cert) { 60 const X509Certificate* cert) {
62 CertDatabaseNotifier::GetInstance()->observer_list_->Notify( 61 CertDatabaseNotifier::GetInstance()->observer_list_->Notify(
63 &CertDatabase::Observer::OnCertTrustChanged, make_scoped_refptr(cert)); 62 &CertDatabase::Observer::OnCertTrustChanged, make_scoped_refptr(cert));
64 } 63 }
65 64
66 } // namespace net 65 } // namespace net
OLDNEW
« no previous file with comments | « net/base/cert_database.h ('k') | net/base/cert_verifier.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698