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 CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 6 #define CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 // |handler| is called when results for AsyncXXX methods are returned. | 53 // |handler| is called when results for AsyncXXX methods are returned. |
54 // Cryptohome service will process the calls in a first-in-first-out manner | 54 // Cryptohome service will process the calls in a first-in-first-out manner |
55 // when they are made in parallel. | 55 // when they are made in parallel. |
56 virtual void SetAsyncCallStatusHandler( | 56 virtual void SetAsyncCallStatusHandler( |
57 const AsyncCallStatusHandler& handler) = 0; | 57 const AsyncCallStatusHandler& handler) = 0; |
58 | 58 |
59 // Resets AsyncCallStatus signal handler. | 59 // Resets AsyncCallStatus signal handler. |
60 virtual void ResetAsyncCallStatusHandler() = 0; | 60 virtual void ResetAsyncCallStatusHandler() = 0; |
61 | 61 |
62 // Calls IsMounted method and returns true when the call succeeds. | 62 // Calls IsMounted method and returns true when the call succeeds. |
63 // This method blocks until the call returns. | 63 virtual void IsMounted(const BoolMethodCallback& callback) = 0; |
64 virtual bool IsMounted(bool* is_mounted) = 0; | |
65 | 64 |
66 // Calls Unmount method and returns true when the call succeeds. | 65 // Calls Unmount method and returns true when the call succeeds. |
67 // This method blocks until the call returns. | 66 // This method blocks until the call returns. |
68 virtual bool Unmount(bool* success) = 0; | 67 virtual bool Unmount(bool* success) = 0; |
69 | 68 |
70 // Calls AsyncCheckKey method. |callback| is called after the method call | 69 // Calls AsyncCheckKey method. |callback| is called after the method call |
71 // succeeds. | 70 // succeeds. |
72 virtual void AsyncCheckKey(const std::string& username, | 71 virtual void AsyncCheckKey(const std::string& username, |
73 const std::string& key, | 72 const std::string& key, |
74 const AsyncMethodCallback& callback) = 0; | 73 const AsyncMethodCallback& callback) = 0; |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
170 // Create() should be used instead. | 169 // Create() should be used instead. |
171 CryptohomeClient(); | 170 CryptohomeClient(); |
172 | 171 |
173 private: | 172 private: |
174 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 173 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
175 }; | 174 }; |
176 | 175 |
177 } // namespace chromeos | 176 } // namespace chromeos |
178 | 177 |
179 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 178 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |