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

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

Issue 12094075: Added GetSanitizedUsername() method to CryptohomeClient. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | 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 <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 83
84 // Calls AsyncRemove method. |callback| is called after the method call 84 // Calls AsyncRemove method. |callback| is called after the method call
85 // succeeds. 85 // succeeds.
86 virtual void AsyncRemove(const std::string& username, 86 virtual void AsyncRemove(const std::string& username,
87 const AsyncMethodCallback& callback) = 0; 87 const AsyncMethodCallback& callback) = 0;
88 88
89 // Calls GetSystemSalt method. This method blocks until the call returns. 89 // Calls GetSystemSalt method. This method blocks until the call returns.
90 // The original content of |salt| is lost. 90 // The original content of |salt| is lost.
91 virtual bool GetSystemSalt(std::vector<uint8>* salt) = 0; 91 virtual bool GetSystemSalt(std::vector<uint8>* salt) = 0;
92 92
93 // Calls GetSanitizedUsername method. |callback| is called after the method
94 // call succeeds.
95 virtual void GetSanitizedUsername(
96 const std::string& username,
97 const StringDBusMethodCallback& callback) = 0;
98
93 // Calls the AsyncMount method to asynchronously mount the cryptohome for 99 // Calls the AsyncMount method to asynchronously mount the cryptohome for
94 // |username|, using |key| to unlock it. For supported |flags|, see the 100 // |username|, using |key| to unlock it. For supported |flags|, see the
95 // documentation of AsyncMethodCaller::AsyncMount(). 101 // documentation of AsyncMethodCaller::AsyncMount().
96 // |callback| is called after the method call succeeds. 102 // |callback| is called after the method call succeeds.
97 virtual void AsyncMount(const std::string& username, 103 virtual void AsyncMount(const std::string& username,
98 const std::string& key, 104 const std::string& key,
99 int flags, 105 int flags,
100 const AsyncMethodCallback& callback) = 0; 106 const AsyncMethodCallback& callback) = 0;
101 107
102 // Calls AsyncMountGuest method. |callback| is called after the method call 108 // Calls AsyncMountGuest method. |callback| is called after the method call
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 // Create() should be used instead. 226 // Create() should be used instead.
221 CryptohomeClient(); 227 CryptohomeClient();
222 228
223 private: 229 private:
224 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient); 230 DISALLOW_COPY_AND_ASSIGN(CryptohomeClient);
225 }; 231 };
226 232
227 } // namespace chromeos 233 } // namespace chromeos
228 234
229 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_ 235 #endif // CHROMEOS_DBUS_CRYPTOHOME_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | chromeos/dbus/cryptohome_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698