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_DBUS_CRYPTOHOME_CLIENT_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 6 #define CHROME_BROWSER_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 // when they are made in parallel. | 54 // when they are made in parallel. |
55 virtual void SetAsyncCallStatusHandler(AsyncCallStatusHandler handler) = 0; | 55 virtual void SetAsyncCallStatusHandler(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 Unmount method and returns true when the call succeeds. |
| 65 // This method blocks until the call returns. |
| 66 virtual bool Unmount(bool* success) = 0; |
| 67 |
64 // Calls AsyncCheckKey method. |callback| is called after the method call | 68 // Calls AsyncCheckKey method. |callback| is called after the method call |
65 // succeeds. | 69 // succeeds. |
66 virtual void AsyncCheckKey(const std::string& username, | 70 virtual void AsyncCheckKey(const std::string& username, |
67 const std::string& key, | 71 const std::string& key, |
68 AsyncMethodCallback callback) = 0; | 72 AsyncMethodCallback callback) = 0; |
69 | 73 |
70 // Calls AsyncMigrateKey method. |callback| is called after the method call | 74 // Calls AsyncMigrateKey method. |callback| is called after the method call |
71 // succeeds. | 75 // succeeds. |
72 virtual void AsyncMigrateKey(const std::string& username, | 76 virtual void AsyncMigrateKey(const std::string& username, |
73 const std::string& from_key, | 77 const std::string& from_key, |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
164 // Create() should be used instead. | 168 // Create() should be used instead. |
165 CryptohomeClient(); | 169 CryptohomeClient(); |
166 | 170 |
167 private: | 171 private: |
168 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 172 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
169 }; | 173 }; |
170 | 174 |
171 } // namespace chromeos | 175 } // namespace chromeos |
172 | 176 |
173 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 177 #endif // CHROME_BROWSER_CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |