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 NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_ |
| 6 #define NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "crypto/scoped_nss_types.h" |
| 11 #include "net/cert/nss_profile_filter_chromeos.h" |
| 12 #include "net/ssl/client_cert_store_impl.h" |
| 13 |
| 14 namespace net { |
| 15 |
| 16 class NET_EXPORT ClientCertStoreChromeOS : public ClientCertStoreImpl { |
| 17 public: |
| 18 explicit ClientCertStoreChromeOS(const std::string& username_hash); |
| 19 virtual ~ClientCertStoreChromeOS(); |
| 20 |
| 21 // ClientCertStoreImpl: |
| 22 virtual void GetClientCerts(const SSLCertRequestInfo& cert_request_info, |
| 23 CertificateList* selected_certs, |
| 24 const base::Closure& callback) OVERRIDE; |
| 25 |
| 26 private: |
| 27 void DidGetPrivateSlot(crypto::ScopedPK11Slot private_slot); |
| 28 void GotClientCerts(); |
| 29 |
| 30 std::string username_hash_; |
| 31 |
| 32 const SSLCertRequestInfo* cert_request_info_; |
| 33 |
| 34 CertificateList* selected_certs_; |
| 35 |
| 36 NSSProfileFilterChromeOS profile_filter_; |
| 37 |
| 38 base::Closure callback_; |
| 39 |
| 40 DISALLOW_COPY_AND_ASSIGN(ClientCertStoreChromeOS); |
| 41 }; |
| 42 |
| 43 } // namespace net |
| 44 |
| 45 #endif // NET_SSL_CLIENT_CERT_STORE_CHROMEOS_H_ |
OLD | NEW |