Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
|
erikwright (departed)
2014/08/25 15:51:07
Remove the 'chromeos' from this filename. There is
ygorshenin1
2014/08/26 14:53:35
Done.
| |
| 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 COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_CHROMEOS_H_ | |
| 6 #define COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_CHROMEOS_H_ | |
| 7 | |
| 8 #include "base/compiler_specific.h" | |
| 9 #include "base/files/file_path.h" | |
| 10 #include "base/macros.h" | |
| 11 #include "components/ownership/owner_key_util.h" | |
| 12 #include "components/ownership/ownership_export.h" | |
| 13 | |
| 14 namespace ownership { | |
| 15 | |
| 16 // Implementation of OwnerKeyUtil that is used in production code. | |
| 17 class OWNERSHIP_EXPORT OwnerKeyUtilChromeOS : public OwnerKeyUtil { | |
| 18 public: | |
| 19 // OwnerKeyUtil: | |
| 20 virtual bool ImportPublicKey(std::vector<uint8>* output) OVERRIDE; | |
| 21 virtual crypto::RSAPrivateKey* FindPrivateKeyInSlot( | |
| 22 const std::vector<uint8>& key, | |
| 23 PK11SlotInfo* slot) OVERRIDE; | |
| 24 virtual bool IsPublicKeyPresent() OVERRIDE; | |
| 25 | |
| 26 protected: | |
| 27 friend class OwnerKeyUtil; | |
| 28 friend class OwnerKeyUtilChromeOSTest; | |
| 29 | |
| 30 explicit OwnerKeyUtilChromeOS(const base::FilePath& public_key_file); | |
| 31 | |
| 32 virtual ~OwnerKeyUtilChromeOS(); | |
| 33 | |
| 34 private: | |
| 35 // The file that holds the public key. | |
| 36 base::FilePath key_file_; | |
| 37 | |
| 38 DISALLOW_COPY_AND_ASSIGN(OwnerKeyUtilChromeOS); | |
| 39 }; | |
| 40 | |
| 41 } // namespace ownership | |
| 42 | |
| 43 #endif // COMPONENTS_OWNERSHIP_OWNER_KEY_UTIL_CHROMEOS_H_ | |
| OLD | NEW |