OLD | NEW |
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 #include <vector> |
10 | 10 |
11 #include "components/user_manager/user_manager_export.h" | 11 #include "components/user_manager/user_manager_export.h" |
12 | 12 |
13 class AccountId; | 13 class AccountId; |
14 class PrefRegistrySimple; | 14 class PrefRegistrySimple; |
15 | 15 |
16 namespace base { | 16 namespace base { |
17 class DictionaryValue; | 17 class DictionaryValue; |
18 class ListValue; | |
19 class TaskRunner; | |
20 } | 18 } |
21 | 19 |
22 namespace user_manager { | 20 namespace user_manager { |
23 namespace known_user { | 21 namespace known_user { |
24 // Methods for storage/retrieval of per-user properties in Local State. | 22 // Methods for storage/retrieval of per-user properties in Local State. |
25 | 23 |
26 // Performs a lookup of properties associated with |account_id|. If found, | 24 // Performs a lookup of properties associated with |account_id|. If found, |
27 // returns |true| and fills |out_value|. |out_value| can be NULL, if | 25 // returns |true| and fills |out_value|. |out_value| can be NULL, if |
28 // only existence check is required. | 26 // only existence check is required. |
29 bool USER_MANAGER_EXPORT FindPrefs(const AccountId& account_id, | 27 bool USER_MANAGER_EXPORT FindPrefs(const AccountId& account_id, |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 // Removes all user preferences associated with |account_id|. | 134 // Removes all user preferences associated with |account_id|. |
137 // (This one used by user_manager only and thus not exported.) | 135 // (This one used by user_manager only and thus not exported.) |
138 void RemovePrefs(const AccountId& account_id); | 136 void RemovePrefs(const AccountId& account_id); |
139 | 137 |
140 // Register known user prefs. | 138 // Register known user prefs. |
141 void USER_MANAGER_EXPORT RegisterPrefs(PrefRegistrySimple* registry); | 139 void USER_MANAGER_EXPORT RegisterPrefs(PrefRegistrySimple* registry); |
142 } | 140 } |
143 } // namespace user_manager | 141 } // namespace user_manager |
144 | 142 |
145 #endif // COMPONENTS_USER_MANAGER_KNOWN_USER_H_ | 143 #endif // COMPONENTS_USER_MANAGER_KNOWN_USER_H_ |
OLD | NEW |