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

Side by Side Diff: chromeos/dbus/fake_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/dbus/cryptohome_client.cc ('k') | chromeos/dbus/fake_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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_FAKE_CRYPTOHOME_CLIENT_H_ 5 #ifndef CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 6 #define CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 20 matching lines...) Expand all
31 bool Unmount(bool* success) override; 31 bool Unmount(bool* success) override;
32 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id, 32 void AsyncCheckKey(const cryptohome::Identification& cryptohome_id,
33 const std::string& key, 33 const std::string& key,
34 const AsyncMethodCallback& callback) override; 34 const AsyncMethodCallback& callback) override;
35 void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id, 35 void AsyncMigrateKey(const cryptohome::Identification& cryptohome_id,
36 const std::string& from_key, 36 const std::string& from_key,
37 const std::string& to_key, 37 const std::string& to_key,
38 const AsyncMethodCallback& callback) override; 38 const AsyncMethodCallback& callback) override;
39 void AsyncRemove(const cryptohome::Identification& cryptohome_id, 39 void AsyncRemove(const cryptohome::Identification& cryptohome_id,
40 const AsyncMethodCallback& callback) override; 40 const AsyncMethodCallback& callback) override;
41 void RenameCryptohome(const cryptohome::Identification& cryptohome_id_from,
42 const cryptohome::Identification& cryptohome_id_to,
43 const ProtobufMethodCallback& callback) override;
41 void GetSystemSalt(const GetSystemSaltCallback& callback) override; 44 void GetSystemSalt(const GetSystemSaltCallback& callback) override;
42 void GetSanitizedUsername(const cryptohome::Identification& cryptohome_id, 45 void GetSanitizedUsername(const cryptohome::Identification& cryptohome_id,
43 const StringDBusMethodCallback& callback) override; 46 const StringDBusMethodCallback& callback) override;
44 std::string BlockingGetSanitizedUsername( 47 std::string BlockingGetSanitizedUsername(
45 const cryptohome::Identification& cryptohome_id) override; 48 const cryptohome::Identification& cryptohome_id) override;
46 void AsyncMount(const cryptohome::Identification& cryptohome_id, 49 void AsyncMount(const cryptohome::Identification& cryptohome_id,
47 const std::string& key, 50 const std::string& key,
48 int flags, 51 int flags,
49 const AsyncMethodCallback& callback) override; 52 const AsyncMethodCallback& callback) override;
50 void AsyncAddKey(const cryptohome::Identification& cryptohome_id, 53 void AsyncAddKey(const cryptohome::Identification& cryptohome_id,
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 std::map<std::string, std::vector<uint8_t>> install_attrs_; 239 std::map<std::string, std::vector<uint8_t>> install_attrs_;
237 bool locked_; 240 bool locked_;
238 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_; 241 base::WeakPtrFactory<FakeCryptohomeClient> weak_ptr_factory_;
239 242
240 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient); 243 DISALLOW_COPY_AND_ASSIGN(FakeCryptohomeClient);
241 }; 244 };
242 245
243 } // namespace chromeos 246 } // namespace chromeos
244 247
245 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_ 248 #endif // CHROMEOS_DBUS_FAKE_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « chromeos/dbus/cryptohome_client.cc ('k') | chromeos/dbus/fake_cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698