| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 130 const DircryptoMigrationProgessHandler& handler) = 0; | 130 const DircryptoMigrationProgessHandler& handler) = 0; |
| 131 | 131 |
| 132 // Runs the callback as soon as the service becomes available. | 132 // Runs the callback as soon as the service becomes available. |
| 133 virtual void WaitForServiceToBeAvailable( | 133 virtual void WaitForServiceToBeAvailable( |
| 134 const WaitForServiceToBeAvailableCallback& callback) = 0; | 134 const WaitForServiceToBeAvailableCallback& callback) = 0; |
| 135 | 135 |
| 136 // Calls IsMounted method and returns true when the call succeeds. | 136 // Calls IsMounted method and returns true when the call succeeds. |
| 137 virtual void IsMounted(const BoolDBusMethodCallback& callback) = 0; | 137 virtual void IsMounted(const BoolDBusMethodCallback& callback) = 0; |
| 138 | 138 |
| 139 // Calls Unmount method and returns true when the call succeeds. | 139 // Calls Unmount method and returns true when the call succeeds. |
| 140 // This method blocks until the call returns. | 140 virtual void Unmount(const BoolDBusMethodCallback& callback) = 0; |
| 141 virtual bool Unmount(bool* success) = 0; | |
| 142 | 141 |
| 143 // Calls AsyncCheckKey method. |callback| is called after the method call | 142 // Calls AsyncCheckKey method. |callback| is called after the method call |
| 144 // succeeds. | 143 // succeeds. |
| 145 virtual void AsyncCheckKey(const cryptohome::Identification& cryptohome_id, | 144 virtual void AsyncCheckKey(const cryptohome::Identification& cryptohome_id, |
| 146 const std::string& key, | 145 const std::string& key, |
| 147 const AsyncMethodCallback& callback) = 0; | 146 const AsyncMethodCallback& callback) = 0; |
| 148 | 147 |
| 149 // Calls AsyncMigrateKey method. |callback| is called after the method call | 148 // Calls AsyncMigrateKey method. |callback| is called after the method call |
| 150 // succeeds. | 149 // succeeds. |
| 151 virtual void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, | 150 virtual void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 583 // Create() should be used instead. | 582 // Create() should be used instead. |
| 584 CryptohomeClient(); | 583 CryptohomeClient(); |
| 585 | 584 |
| 586 private: | 585 private: |
| 587 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 586 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
| 588 }; | 587 }; |
| 589 | 588 |
| 590 } // namespace chromeos | 589 } // namespace chromeos |
| 591 | 590 |
| 592 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 591 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
| OLD | NEW |