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 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
145 virtual void AsyncRemove(const cryptohome::Identification& cryptohome_id, | 145 virtual void AsyncRemove(const cryptohome::Identification& cryptohome_id, |
146 const AsyncMethodCallback& callback) = 0; | 146 const AsyncMethodCallback& callback) = 0; |
147 | 147 |
148 // Calls RenameCryptohome method. |callback| is called after the method | 148 // Calls RenameCryptohome method. |callback| is called after the method |
149 // call succeeds. | 149 // call succeeds. |
150 virtual void RenameCryptohome( | 150 virtual void RenameCryptohome( |
151 const cryptohome::Identification& cryptohome_id_from, | 151 const cryptohome::Identification& cryptohome_id_from, |
152 const cryptohome::Identification& cryptohome_id_to, | 152 const cryptohome::Identification& cryptohome_id_to, |
153 const ProtobufMethodCallback& callback) = 0; | 153 const ProtobufMethodCallback& callback) = 0; |
154 | 154 |
| 155 // Calls GetAccountDiskUsage method. |callback| is called after the method |
| 156 // call succeeds |
| 157 virtual void GetAccountDiskUsage(const cryptohome::Identification& account_id, |
| 158 const ProtobufMethodCallback& callback) = 0; |
| 159 |
155 // Calls GetSystemSalt method. |callback| is called after the method call | 160 // Calls GetSystemSalt method. |callback| is called after the method call |
156 // succeeds. | 161 // succeeds. |
157 virtual void GetSystemSalt(const GetSystemSaltCallback& callback) = 0; | 162 virtual void GetSystemSalt(const GetSystemSaltCallback& callback) = 0; |
158 | 163 |
159 // Calls GetSanitizedUsername method. |callback| is called after the method | 164 // Calls GetSanitizedUsername method. |callback| is called after the method |
160 // call succeeds. | 165 // call succeeds. |
161 virtual void GetSanitizedUsername( | 166 virtual void GetSanitizedUsername( |
162 const cryptohome::Identification& cryptohome_id, | 167 const cryptohome::Identification& cryptohome_id, |
163 const StringDBusMethodCallback& callback) = 0; | 168 const StringDBusMethodCallback& callback) = 0; |
164 | 169 |
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 // Create() should be used instead. | 559 // Create() should be used instead. |
555 CryptohomeClient(); | 560 CryptohomeClient(); |
556 | 561 |
557 private: | 562 private: |
558 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); | 563 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); |
559 }; | 564 }; |
560 | 565 |
561 } // namespace chromeos | 566 } // namespace chromeos |
562 | 567 |
563 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ | 568 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ |
OLD | NEW |