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

Side by Side Diff: components/user_manager/known_user.h

Issue 1693383003: ChromeOS cryptohome should be able to use gaia id as user identifier. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added missing files. Created 4 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 COMPONENTS_USER_MANAGER_KNOWN_USER_H_ 5 #ifndef COMPONENTS_USER_MANAGER_KNOWN_USER_H_
6 #define COMPONENTS_USER_MANAGER_KNOWN_USER_H_ 6 #define COMPONENTS_USER_MANAGER_KNOWN_USER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector>
9 10
10 #include "components/user_manager/user_manager_export.h" 11 #include "components/user_manager/user_manager_export.h"
11 12
12 class AccountId; 13 class AccountId;
13 class PrefRegistrySimple; 14 class PrefRegistrySimple;
14 15
15 namespace base { 16 namespace base {
16 class DictionaryValue; 17 class DictionaryValue;
17 class ListValue; 18 class ListValue;
18 class TaskRunner; 19 class TaskRunner;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // fills in |out_value|. Otherwise returns false. 62 // fills in |out_value|. Otherwise returns false.
62 bool USER_MANAGER_EXPORT GetIntegerPref(const AccountId& account_id, 63 bool USER_MANAGER_EXPORT GetIntegerPref(const AccountId& account_id,
63 const std::string& path, 64 const std::string& path,
64 int* out_value); 65 int* out_value);
65 66
66 // Updates user's identified by |account_id| integer preference |path|. 67 // Updates user's identified by |account_id| integer preference |path|.
67 void USER_MANAGER_EXPORT SetIntegerPref(const AccountId& account_id, 68 void USER_MANAGER_EXPORT SetIntegerPref(const AccountId& account_id,
68 const std::string& path, 69 const std::string& path,
69 const int in_value); 70 const int in_value);
70 71
72 // Returns the list of known AccountIds.
73 std::vector<AccountId> USER_MANAGER_EXPORT GetKnownAccountIds();
74
71 // This call forms full account id of a known user by email and (optionally) 75 // This call forms full account id of a known user by email and (optionally)
72 // gaia_id. 76 // gaia_id.
73 // This is a temporary call while migrating to AccountId. 77 // This is a temporary call while migrating to AccountId.
74 AccountId USER_MANAGER_EXPORT GetAccountId(const std::string& user_email, 78 AccountId USER_MANAGER_EXPORT GetAccountId(const std::string& user_email,
75 const std::string& gaia_id); 79 const std::string& gaia_id);
76 80
77 // Returns true if |subsystem| data was migrated to GaiaId for the |account_id|. 81 // Returns true if |subsystem| data was migrated to GaiaId for the |account_id|.
78 bool USER_MANAGER_EXPORT GetGaiaIdMigrationStatus(const AccountId& account_id, 82 bool USER_MANAGER_EXPORT GetGaiaIdMigrationStatus(const AccountId& account_id,
79 const std::string& subsystem); 83 const std::string& subsystem);
80 84
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 // Removes all user preferences associated with |account_id|. 136 // Removes all user preferences associated with |account_id|.
133 // (This one used by user_manager only and thus not exported.) 137 // (This one used by user_manager only and thus not exported.)
134 void RemovePrefs(const AccountId& account_id); 138 void RemovePrefs(const AccountId& account_id);
135 139
136 // Register known user prefs. 140 // Register known user prefs.
137 void USER_MANAGER_EXPORT RegisterPrefs(PrefRegistrySimple* registry); 141 void USER_MANAGER_EXPORT RegisterPrefs(PrefRegistrySimple* registry);
138 } 142 }
139 } // namespace user_manager 143 } // namespace user_manager
140 144
141 #endif // COMPONENTS_USER_MANAGER_KNOWN_USER_H_ 145 #endif // COMPONENTS_USER_MANAGER_KNOWN_USER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698