Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(158)

Side by Side Diff: chromeos/dbus/cryptohome_client.h

Issue 1738023002: ChromeOS: Add RenameCryptohome and migration code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@462823--Chrome-OS-handles-deletion-of-Gmail-account-poorly--Create-AccountID-structure-part11--migrate-cryptohomes
Patch Set: Update after review. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chromeos/cryptohome/mock_homedir_methods.h ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 virtual void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, 132 virtual void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id,
133 const std::string& from_key, 133 const std::string& from_key,
134 const std::string& to_key, 134 const std::string& to_key,
135 const AsyncMethodCallback& callback) = 0; 135 const AsyncMethodCallback& callback) = 0;
136 136
137 // Calls AsyncRemove method. |callback| is called after the method call 137 // Calls AsyncRemove method. |callback| is called after the method call
138 // succeeds. 138 // succeeds.
139 virtual void AsyncRemove(const cryptohome::Identification& cryptohome_id, 139 virtual void AsyncRemove(const cryptohome::Identification& cryptohome_id,
140 const AsyncMethodCallback& callback) = 0; 140 const AsyncMethodCallback& callback) = 0;
141 141
142 // Calls RenameCryptohome method. |callback| is called after the method
143 // call succeeds.
144 virtual void RenameCryptohome(
145 const cryptohome::Identification& cryptohome_id_from,
146 const cryptohome::Identification& cryptohome_id_to,
147 const ProtobufMethodCallback& callback) = 0;
148
142 // Calls GetSystemSalt method. |callback| is called after the method call 149 // Calls GetSystemSalt method. |callback| is called after the method call
143 // succeeds. 150 // succeeds.
144 virtual void GetSystemSalt(const GetSystemSaltCallback& callback) = 0; 151 virtual void GetSystemSalt(const GetSystemSaltCallback& callback) = 0;
145 152
146 // Calls GetSanitizedUsername method. |callback| is called after the method 153 // Calls GetSanitizedUsername method. |callback| is called after the method
147 // call succeeds. 154 // call succeeds.
148 virtual void GetSanitizedUsername( 155 virtual void GetSanitizedUsername(
149 const cryptohome::Identification& cryptohome_id, 156 const cryptohome::Identification& cryptohome_id,
150 const StringDBusMethodCallback& callback) = 0; 157 const StringDBusMethodCallback& callback) = 0;
151 158
(...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after
541 // Create() should be used instead. 548 // Create() should be used instead.
542 CryptohomeClient(); 549 CryptohomeClient();
543 550
544 private: 551 private:
545 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); 552 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient);
546 }; 553 };
547 554
548 } // namespace chromeos 555 } // namespace chromeos
549 556
550 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 557 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/cryptohome/mock_homedir_methods.h ('k') | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698