| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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_USER_MANAGER_BASE_H_ | 5 #ifndef COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
| 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ | 6 #define COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 std::string* out_value) override; | 116 std::string* out_value) override; |
| 117 void SetKnownUserStringPref(const UserID& user_id, | 117 void SetKnownUserStringPref(const UserID& user_id, |
| 118 const std::string& path, | 118 const std::string& path, |
| 119 const std::string& in_value) override; | 119 const std::string& in_value) override; |
| 120 bool GetKnownUserBooleanPref(const UserID& user_id, | 120 bool GetKnownUserBooleanPref(const UserID& user_id, |
| 121 const std::string& path, | 121 const std::string& path, |
| 122 bool* out_value) override; | 122 bool* out_value) override; |
| 123 void SetKnownUserBooleanPref(const UserID& user_id, | 123 void SetKnownUserBooleanPref(const UserID& user_id, |
| 124 const std::string& path, | 124 const std::string& path, |
| 125 const bool in_value) override; | 125 const bool in_value) override; |
| 126 bool GetKnownUserIntegerPref(const UserID& user_id, |
| 127 const std::string& path, |
| 128 int* out_value) override; |
| 129 void SetKnownUserIntegerPref(const UserID& user_id, |
| 130 const std::string& path, |
| 131 const int in_value) override; |
| 126 void UpdateGaiaID(const UserID& user_id, const std::string& gaia_id) override; | 132 void UpdateGaiaID(const UserID& user_id, const std::string& gaia_id) override; |
| 127 bool FindGaiaID(const UserID& user_id, std::string* out_value) override; | 133 bool FindGaiaID(const UserID& user_id, std::string* out_value) override; |
| 128 void UpdateUsingSAML(const std::string& user_id, | 134 void UpdateUsingSAML(const std::string& user_id, |
| 129 const bool using_saml) override; | 135 const bool using_saml) override; |
| 130 bool FindUsingSAML(const std::string& user_id) override; | 136 bool FindUsingSAML(const std::string& user_id) override; |
| 131 void SetKnownUserDeviceId(const UserID& user_id, | 137 void SetKnownUserDeviceId(const UserID& user_id, |
| 132 const std::string& device_id) override; | 138 const std::string& device_id) override; |
| 133 std::string GetKnownUserDeviceId(const UserID& user_id) override; | 139 std::string GetKnownUserDeviceId(const UserID& user_id) override; |
| 140 void UpdateReauthReason(const std::string& user_id, |
| 141 const int reauth_reason) override; |
| 142 bool FindReauthReason(const std::string& user_id, int* out_value) override; |
| 134 | 143 |
| 135 virtual void SetIsCurrentUserNew(bool is_new); | 144 virtual void SetIsCurrentUserNew(bool is_new); |
| 136 | 145 |
| 137 // TODO(xiyuan): Figure out a better way to expose this info. | 146 // TODO(xiyuan): Figure out a better way to expose this info. |
| 138 virtual bool HasPendingBootstrap(const std::string& user_id) const; | 147 virtual bool HasPendingBootstrap(const std::string& user_id) const; |
| 139 | 148 |
| 140 // Helper function that copies users from |users_list| to |users_vector| and | 149 // Helper function that copies users from |users_list| to |users_vector| and |
| 141 // |users_set|. Duplicates and users already present in |existing_users| are | 150 // |users_set|. Duplicates and users already present in |existing_users| are |
| 142 // skipped. | 151 // skipped. |
| 143 static void ParseUserList(const base::ListValue& users_list, | 152 static void ParseUserList(const base::ListValue& users_list, |
| (...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 413 scoped_refptr<base::TaskRunner> blocking_task_runner_; | 422 scoped_refptr<base::TaskRunner> blocking_task_runner_; |
| 414 | 423 |
| 415 base::WeakPtrFactory<UserManagerBase> weak_factory_; | 424 base::WeakPtrFactory<UserManagerBase> weak_factory_; |
| 416 | 425 |
| 417 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); | 426 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); |
| 418 }; | 427 }; |
| 419 | 428 |
| 420 } // namespace user_manager | 429 } // namespace user_manager |
| 421 | 430 |
| 422 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ | 431 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
| OLD | NEW |