| 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 #ifndef NET_CERT_NSS_PROFILE_FILTER_CHROMEOS_H_ | 5 #ifndef NET_CERT_NSS_PROFILE_FILTER_CHROMEOS_H_ |
| 6 #define NET_CERT_NSS_PROFILE_FILTER_CHROMEOS_H_ | 6 #define NET_CERT_NSS_PROFILE_FILTER_CHROMEOS_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" |
| 9 #include "base/macros.h" |
| 8 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 9 #include "crypto/scoped_nss_types.h" | 11 #include "crypto/scoped_nss_types.h" |
| 10 #include "net/base/crypto_module.h" | 12 #include "net/base/crypto_module.h" |
| 11 #include "net/base/net_export.h" | 13 #include "net/base/net_export.h" |
| 12 | 14 |
| 13 namespace net { | 15 namespace net { |
| 14 | 16 |
| 15 class X509Certificate; | 17 class X509Certificate; |
| 16 | 18 |
| 17 // On ChromeOS each user has separate NSS databases, which are loaded | 19 // On ChromeOS each user has separate NSS databases, which are loaded |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 private: | 63 private: |
| 62 const NSSProfileFilterChromeOS& filter_; | 64 const NSSProfileFilterChromeOS& filter_; |
| 63 }; | 65 }; |
| 64 | 66 |
| 65 private: | 67 private: |
| 66 crypto::ScopedPK11Slot public_slot_; | 68 crypto::ScopedPK11Slot public_slot_; |
| 67 crypto::ScopedPK11Slot private_slot_; | 69 crypto::ScopedPK11Slot private_slot_; |
| 68 crypto::ScopedPK11Slot system_slot_; | 70 crypto::ScopedPK11Slot system_slot_; |
| 69 }; | 71 }; |
| 70 | 72 |
| 73 class NET_EXPORT NSSProfileFilterChromeOSFactory { |
| 74 public: |
| 75 virtual ~NSSProfileFilterChromeOSFactory() {} |
| 76 virtual scoped_ptr<NSSProfileFilterChromeOS> CreateFilter( |
| 77 const base::Callback<void(const NSSProfileFilterChromeOS&)>&) = 0; |
| 78 |
| 79 private: |
| 80 DISALLOW_ASSIGN(NSSProfileFilterChromeOSFactory); |
| 81 }; |
| 82 |
| 71 } // namespace net | 83 } // namespace net |
| 72 | 84 |
| 73 #endif // NET_CERT_NSS_PROFILE_FILTER_CHROMEOS_H_ | 85 #endif // NET_CERT_NSS_PROFILE_FILTER_CHROMEOS_H_ |
| OLD | NEW |