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 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 const std::string& path, | 130 const std::string& path, |
131 const int in_value) override; | 131 const int in_value) override; |
132 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; |
133 bool FindGaiaID(const UserID& user_id, std::string* out_value) override; | 133 bool FindGaiaID(const UserID& user_id, std::string* out_value) override; |
134 void UpdateUsingSAML(const std::string& user_id, | 134 void UpdateUsingSAML(const std::string& user_id, |
135 const bool using_saml) override; | 135 const bool using_saml) override; |
136 bool FindUsingSAML(const std::string& user_id) override; | 136 bool FindUsingSAML(const std::string& user_id) override; |
137 void SetKnownUserDeviceId(const UserID& user_id, | 137 void SetKnownUserDeviceId(const UserID& user_id, |
138 const std::string& device_id) override; | 138 const std::string& device_id) override; |
139 std::string GetKnownUserDeviceId(const UserID& user_id) override; | 139 std::string GetKnownUserDeviceId(const UserID& user_id) override; |
| 140 void SetKnownUserGAPSCookie(const UserID& user_id, |
| 141 const std::string& gaps_cookie) override; |
| 142 std::string GetKnownUserGAPSCookie(const UserID& user_id) override; |
140 void UpdateReauthReason(const std::string& user_id, | 143 void UpdateReauthReason(const std::string& user_id, |
141 const int reauth_reason) override; | 144 const int reauth_reason) override; |
142 bool FindReauthReason(const std::string& user_id, int* out_value) override; | 145 bool FindReauthReason(const std::string& user_id, int* out_value) override; |
143 | 146 |
144 virtual void SetIsCurrentUserNew(bool is_new); | 147 virtual void SetIsCurrentUserNew(bool is_new); |
145 | 148 |
146 // TODO(xiyuan): Figure out a better way to expose this info. | 149 // TODO(xiyuan): Figure out a better way to expose this info. |
147 virtual bool HasPendingBootstrap(const std::string& user_id) const; | 150 virtual bool HasPendingBootstrap(const std::string& user_id) const; |
148 | 151 |
149 // Helper function that copies users from |users_list| to |users_vector| and | 152 // Helper function that copies users from |users_list| to |users_vector| and |
(...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 scoped_refptr<base::TaskRunner> blocking_task_runner_; | 425 scoped_refptr<base::TaskRunner> blocking_task_runner_; |
423 | 426 |
424 base::WeakPtrFactory<UserManagerBase> weak_factory_; | 427 base::WeakPtrFactory<UserManagerBase> weak_factory_; |
425 | 428 |
426 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); | 429 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); |
427 }; | 430 }; |
428 | 431 |
429 } // namespace user_manager | 432 } // namespace user_manager |
430 | 433 |
431 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ | 434 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
OLD | NEW |