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

Side by Side Diff: net/cert/nss_cert_database_chromeos.cc

Issue 266243004: Clang format slam. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/cert/nss_cert_database_chromeos.h" 5 #include "net/cert/nss_cert_database_chromeos.h"
6 6
7 #include <cert.h> 7 #include <cert.h>
8 #include <pk11pub.h> 8 #include <pk11pub.h>
9 9
10 #include <algorithm> 10 #include <algorithm>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/callback.h" 13 #include "base/callback.h"
14 #include "base/location.h" 14 #include "base/location.h"
15 #include "base/task_runner.h" 15 #include "base/task_runner.h"
16 #include "net/base/crypto_module.h" 16 #include "net/base/crypto_module.h"
17 #include "net/cert/x509_certificate.h" 17 #include "net/cert/x509_certificate.h"
18 18
19 namespace net { 19 namespace net {
20 20
21 NSSCertDatabaseChromeOS::NSSCertDatabaseChromeOS( 21 NSSCertDatabaseChromeOS::NSSCertDatabaseChromeOS(
22 crypto::ScopedPK11Slot public_slot, 22 crypto::ScopedPK11Slot public_slot,
23 crypto::ScopedPK11Slot private_slot) 23 crypto::ScopedPK11Slot private_slot)
24 : public_slot_(public_slot.Pass()), 24 : public_slot_(public_slot.Pass()), private_slot_(private_slot.Pass()) {
25 private_slot_(private_slot.Pass()) {
26 profile_filter_.Init(GetPublicSlot(), GetPrivateSlot()); 25 profile_filter_.Init(GetPublicSlot(), GetPrivateSlot());
27 } 26 }
28 27
29 NSSCertDatabaseChromeOS::~NSSCertDatabaseChromeOS() {} 28 NSSCertDatabaseChromeOS::~NSSCertDatabaseChromeOS() {
29 }
30 30
31 void NSSCertDatabaseChromeOS::ListCertsSync(CertificateList* certs) { 31 void NSSCertDatabaseChromeOS::ListCertsSync(CertificateList* certs) {
32 ListCertsImpl(profile_filter_, certs); 32 ListCertsImpl(profile_filter_, certs);
33 } 33 }
34 34
35 void NSSCertDatabaseChromeOS::ListCerts( 35 void NSSCertDatabaseChromeOS::ListCerts(
36 const base::Callback<void(scoped_ptr<CertificateList> certs)>& callback) { 36 const base::Callback<void(scoped_ptr<CertificateList> certs)>& callback) {
37 scoped_ptr<CertificateList> certs(new CertificateList()); 37 scoped_ptr<CertificateList> certs(new CertificateList());
38 38
39 // base::Pased will NULL out |certs|, so cache the underlying pointer here. 39 // base::Pased will NULL out |certs|, so cache the underlying pointer here.
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 certs->begin(), 82 certs->begin(),
83 certs->end(), 83 certs->end(),
84 NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate( 84 NSSProfileFilterChromeOS::CertNotAllowedForProfilePredicate(
85 profile_filter)), 85 profile_filter)),
86 certs->end()); 86 certs->end());
87 DVLOG(1) << "filtered " << pre_size - certs->size() << " of " << pre_size 87 DVLOG(1) << "filtered " << pre_size - certs->size() << " of " << pre_size
88 << " certs"; 88 << " certs";
89 } 89 }
90 90
91 } // namespace net 91 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698