| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/string16.h" | 10 #include "base/string16.h" |
| 11 #include "net/base/cert_database.h" | |
| 12 #include "net/base/x509_certificate.h" | 11 #include "net/base/x509_certificate.h" |
| 13 | 12 |
| 14 namespace crypto { | 13 namespace crypto { |
| 15 class SymmetricKey; | 14 class SymmetricKey; |
| 16 } | 15 } |
| 17 | 16 |
| 18 namespace chromeos { | 17 namespace chromeos { |
| 19 | 18 |
| 20 class CertLibrary { | 19 class CertLibrary { |
| 21 public: | 20 public: |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 // Encrypts |token| with supplemental user key. | 104 // Encrypts |token| with supplemental user key. |
| 106 virtual std::string EncryptToken(const std::string& token) = 0; | 105 virtual std::string EncryptToken(const std::string& token) = 0; |
| 107 | 106 |
| 108 // Decrypts |token| with supplemental user key. | 107 // Decrypts |token| with supplemental user key. |
| 109 virtual std::string DecryptToken(const std::string& encrypted_token) = 0; | 108 virtual std::string DecryptToken(const std::string& encrypted_token) = 0; |
| 110 }; | 109 }; |
| 111 | 110 |
| 112 } // namespace chromeos | 111 } // namespace chromeos |
| 113 | 112 |
| 114 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ | 113 #endif // CHROME_BROWSER_CHROMEOS_CROS_CERT_LIBRARY_H_ |
| OLD | NEW |