OLD | NEW |
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/ssl/client_cert_store_chromeos.h" | 5 #include "net/ssl/client_cert_store_chromeos.h" |
6 | 6 |
7 #include <cert.h> | 7 #include <cert.h> |
8 #include <algorithm> | 8 #include <algorithm> |
9 | 9 |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
(...skipping 13 matching lines...) Expand all Loading... |
24 return !filter_.IsCertAllowed(cert); | 24 return !filter_.IsCertAllowed(cert); |
25 } | 25 } |
26 | 26 |
27 private: | 27 private: |
28 const ClientCertStoreChromeOS::CertFilter& filter_; | 28 const ClientCertStoreChromeOS::CertFilter& filter_; |
29 }; | 29 }; |
30 | 30 |
31 } // namespace | 31 } // namespace |
32 | 32 |
33 ClientCertStoreChromeOS::ClientCertStoreChromeOS( | 33 ClientCertStoreChromeOS::ClientCertStoreChromeOS( |
| 34 scoped_ptr<CertStoreDelegate> cert_store_delegate, |
34 scoped_ptr<CertFilter> cert_filter, | 35 scoped_ptr<CertFilter> cert_filter, |
35 const PasswordDelegateFactory& password_delegate_factory) | 36 const PasswordDelegateFactory& password_delegate_factory) |
36 : ClientCertStoreNSS(password_delegate_factory), | 37 : ClientCertStoreNSS(password_delegate_factory), |
37 cert_filter_(cert_filter.Pass()) { | 38 cert_filter_(cert_filter.Pass()) { |
38 } | 39 } |
39 | 40 |
40 ClientCertStoreChromeOS::~ClientCertStoreChromeOS() {} | 41 ClientCertStoreChromeOS::~ClientCertStoreChromeOS() {} |
41 | 42 |
42 void ClientCertStoreChromeOS::GetClientCerts( | 43 void ClientCertStoreChromeOS::GetClientCerts( |
43 const SSLCertRequestInfo& cert_request_info, | 44 const SSLCertRequestInfo& cert_request_info, |
(...skipping 30 matching lines...) Expand all Loading... |
74 } | 75 } |
75 | 76 |
76 void ClientCertStoreChromeOS::CertFilterInitialized( | 77 void ClientCertStoreChromeOS::CertFilterInitialized( |
77 const SSLCertRequestInfo* request, | 78 const SSLCertRequestInfo* request, |
78 CertificateList* selected_certs, | 79 CertificateList* selected_certs, |
79 const base::Closure& callback) { | 80 const base::Closure& callback) { |
80 ClientCertStoreNSS::GetClientCerts(*request, selected_certs, callback); | 81 ClientCertStoreNSS::GetClientCerts(*request, selected_certs, callback); |
81 } | 82 } |
82 | 83 |
83 } // namespace net | 84 } // namespace net |
OLD | NEW |