OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef NET_CERT_NSS_CERT_DATABASE_CHROMEOS_ |
| 6 #define NET_CERT_NSS_CERT_DATABASE_CHROMEOS_ |
| 7 |
| 8 #include "base/callback.h" |
| 9 #include "crypto/scoped_nss_types.h" |
| 10 #include "net/cert/nss_cert_database.h" |
| 11 #include "net/cert/nss_profile_filter_chromeos.h" |
| 12 |
| 13 namespace net { |
| 14 |
| 15 class NET_EXPORT NSSCertDatabaseChromeOS : public NSSCertDatabase { |
| 16 public: |
| 17 NSSCertDatabaseChromeOS(crypto::ScopedPK11Slot public_slot, |
| 18 crypto::ScopedPK11Slot private_slot); |
| 19 virtual ~NSSCertDatabaseChromeOS(); |
| 20 |
| 21 // NSSCertDatabase implementation. |
| 22 virtual void ListCerts(CertificateList* certs) OVERRIDE; |
| 23 virtual crypto::ScopedPK11Slot GetPublicSlot() const OVERRIDE; |
| 24 virtual crypto::ScopedPK11Slot GetPrivateSlot() const OVERRIDE; |
| 25 virtual void ListModules(CryptoModuleList* modules, bool need_rw) const |
| 26 OVERRIDE; |
| 27 |
| 28 // TODO(mattm): handle trust setting, deletion, etc correctly when certs exist |
| 29 // in multiple slots. |
| 30 // TODO(mattm): handle trust setting correctly for certs in read-only slots. |
| 31 |
| 32 private: |
| 33 crypto::ScopedPK11Slot public_slot_; |
| 34 crypto::ScopedPK11Slot private_slot_; |
| 35 NSSProfileFilterChromeOS profile_filter_; |
| 36 |
| 37 DISALLOW_COPY_AND_ASSIGN(NSSCertDatabaseChromeOS); |
| 38 }; |
| 39 |
| 40 } // namespace net |
| 41 |
| 42 #endif // NET_CERT_NSS_CERT_DATABASE_CHROMEOS_ |
OLD | NEW |