OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_CRYPTOHOME_LIBRARY_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ |
6 #define CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ | 6 #define CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/singleton.h" | 11 #include "base/singleton.h" |
12 #include "chrome/browser/chromeos/cros/cros_library.h" | 12 #include "chrome/browser/chromeos/cros/cros_library.h" |
13 #include "cros/chromeos_cryptohome.h" | 13 #include "third_party/cros/chromeos_cryptohome.h" |
14 | 14 |
15 namespace chromeos { | 15 namespace chromeos { |
16 | 16 |
17 // This interface defines the interaction with the ChromeOS cryptohome library | 17 // This interface defines the interaction with the ChromeOS cryptohome library |
18 // APIs. | 18 // APIs. |
19 class CryptohomeLibrary { | 19 class CryptohomeLibrary { |
20 public: | 20 public: |
21 class Delegate { | 21 class Delegate { |
22 public: | 22 public: |
23 // This will be called back on the UI thread. Consult |return_code| for | 23 // This will be called back on the UI thread. Consult |return_code| for |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 virtual void TpmClearStoredPassword() = 0; | 130 virtual void TpmClearStoredPassword() = 0; |
131 | 131 |
132 // Factory function, creates a new instance and returns ownership. | 132 // Factory function, creates a new instance and returns ownership. |
133 // For normal usage, access the singleton via CrosLibrary::Get(). | 133 // For normal usage, access the singleton via CrosLibrary::Get(). |
134 static CryptohomeLibrary* GetImpl(bool stub); | 134 static CryptohomeLibrary* GetImpl(bool stub); |
135 }; | 135 }; |
136 | 136 |
137 } // namespace chromeos | 137 } // namespace chromeos |
138 | 138 |
139 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ | 139 #endif // CHROME_BROWSER_CHROMEOS_CROS_CRYPTOHOME_LIBRARY_H_ |
OLD | NEW |