OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CROS_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CROS_H_ |
| 7 |
| 8 #include <vector> |
| 9 |
| 10 #include "base/callback.h" |
| 11 #include "base/memory/ref_counted.h" |
| 12 #include "chrome/browser/chromeos/net/profile_cert_filter.h" |
| 13 #include "crypto/scoped_nss_types.h" |
| 14 #include "net/cert/x509_certificate.h" |
| 15 #include "net/ssl/client_cert_store.h" |
| 16 #include "net/ssl/client_cert_store_impl.h" |
| 17 |
| 18 namespace chromeos { |
| 19 |
| 20 class ClientCertStoreCros : public net::ClientCertStore { |
| 21 public: |
| 22 explicit ClientCertStoreCros(content::ResourceContext* context); |
| 23 virtual ~ClientCertStoreCros() {} |
| 24 |
| 25 // net::ClientCertStore: |
| 26 virtual void GetClientCerts(const net::SSLCertRequestInfo& cert_request_info, |
| 27 net::CertificateList* selected_certs, |
| 28 const base::Closure& callback) OVERRIDE; |
| 29 |
| 30 private: |
| 31 void ReadyToGetCerts(); |
| 32 void GotClientCerts(); |
| 33 |
| 34 const net::SSLCertRequestInfo* cert_request_info_; |
| 35 |
| 36 net::CertificateList* selected_certs_; |
| 37 |
| 38 net::ClientCertStoreImpl net_client_cert_store_impl_; |
| 39 |
| 40 ProfileCertFilter profile_cert_filter_; |
| 41 |
| 42 base::Closure ready_to_get_certs_barrier_; |
| 43 |
| 44 base::Closure callback_; |
| 45 |
| 46 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreCros); |
| 47 }; |
| 48 |
| 49 } // namespace chromeos |
| 50 |
| 51 #endif // CHROME_BROWSER_CHROMEOS_NET_CLIENT_CERT_STORE_CROS_H_ |
OLD | NEW |