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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
54 virtual void SetAsyncCallStatusHandler( | 54 virtual void SetAsyncCallStatusHandler( |
55 const AsyncCallStatusHandler& handler) = 0; | 55 const AsyncCallStatusHandler& handler) = 0; |
56 | 56 |
57 // Resets AsyncCallStatus signal handler. | 57 // Resets AsyncCallStatus signal handler. |
58 virtual void ResetAsyncCallStatusHandler() = 0; | 58 virtual void ResetAsyncCallStatusHandler() = 0; |
59 | 59 |
60 // Calls IsMounted method and returns true when the call succeeds. | 60 // Calls IsMounted method and returns true when the call succeeds. |
61 // This method blocks until the call returns. | 61 // This method blocks until the call returns. |
62 virtual bool IsMounted(bool* is_mounted) = 0; | 62 virtual bool IsMounted(bool* is_mounted) = 0; |
63 | 63 |
64 // Calls IsMountedForUser and returns true when the call succeeds. | |
hashimoto
2012/05/10 07:41:55
Please make this method asynchronous, it should be
| |
65 // This method blocks until the call returns. | |
66 virtual bool IsMountedForUser(const std::string& username, | |
67 bool* is_mounted, | |
68 bool* is_ephemeral_mount) = 0; | |
69 | |
64 // Calls Unmount method and returns true when the call succeeds. | 70 // Calls Unmount method and returns true when the call succeeds. |
65 // This method blocks until the call returns. | 71 // This method blocks until the call returns. |
66 virtual bool Unmount(bool* success) = 0; | 72 virtual bool Unmount(bool* success) = 0; |
67 | 73 |
68 // Calls AsyncCheckKey method. |callback| is called after the method call | 74 // Calls AsyncCheckKey method. |callback| is called after the method call |
69 // succeeds. | 75 // succeeds. |
70 virtual void AsyncCheckKey(const std::string& username, | 76 virtual void AsyncCheckKey(const std::string& username, |
71 const std::string& key, | 77 const std::string& key, |
72 const AsyncMethodCallback& callback) = 0; | 78 const AsyncMethodCallback& callback) = 0; |
73 | 79 |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
171 // Create() should be used instead. | 177 // Create() should be used instead. |
172 CryptohomeClient(); | 178 CryptohomeClient(); |
173 | 179 |
174 private: | 180 private: |
175 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 181 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
176 }; | 182 }; |
177 | 183 |
178 } // namespace chromeos | 184 } // namespace chromeos |
179 | 185 |
180 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 186 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |