| 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 <memory> | 9 #include <memory> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 79 void SaveUserDisplayEmail(const AccountId& account_id, | 79 void SaveUserDisplayEmail(const AccountId& account_id, |
| 80 const std::string& display_email) override; | 80 const std::string& display_email) override; |
| 81 std::string GetUserDisplayEmail(const AccountId& account_id) const override; | 81 std::string GetUserDisplayEmail(const AccountId& account_id) const override; |
| 82 void SaveUserType(const AccountId& account_id, | 82 void SaveUserType(const AccountId& account_id, |
| 83 const UserType& user_type) override; | 83 const UserType& user_type) override; |
| 84 void UpdateUserAccountData(const AccountId& account_id, | 84 void UpdateUserAccountData(const AccountId& account_id, |
| 85 const UserAccountData& account_data) override; | 85 const UserAccountData& account_data) override; |
| 86 bool IsCurrentUserOwner() const override; | 86 bool IsCurrentUserOwner() const override; |
| 87 bool IsCurrentUserNew() const override; | 87 bool IsCurrentUserNew() const override; |
| 88 bool IsCurrentUserNonCryptohomeDataEphemeral() const override; | 88 bool IsCurrentUserNonCryptohomeDataEphemeral() const override; |
| 89 bool IsCurrentUserCryptohomeDataEphemeral() const override; |
| 89 bool CanCurrentUserLock() const override; | 90 bool CanCurrentUserLock() const override; |
| 90 bool IsUserLoggedIn() const override; | 91 bool IsUserLoggedIn() const override; |
| 91 bool IsLoggedInAsUserWithGaiaAccount() const override; | 92 bool IsLoggedInAsUserWithGaiaAccount() const override; |
| 92 bool IsLoggedInAsChildUser() const override; | 93 bool IsLoggedInAsChildUser() const override; |
| 93 bool IsLoggedInAsPublicAccount() const override; | 94 bool IsLoggedInAsPublicAccount() const override; |
| 94 bool IsLoggedInAsGuest() const override; | 95 bool IsLoggedInAsGuest() const override; |
| 95 bool IsLoggedInAsSupervisedUser() const override; | 96 bool IsLoggedInAsSupervisedUser() const override; |
| 96 bool IsLoggedInAsKioskApp() const override; | 97 bool IsLoggedInAsKioskApp() const override; |
| 97 bool IsLoggedInAsStub() const override; | 98 bool IsLoggedInAsStub() const override; |
| 98 bool IsSessionStarted() const override; | 99 bool IsSessionStarted() const override; |
| 99 bool IsUserNonCryptohomeDataEphemeral( | 100 bool IsUserNonCryptohomeDataEphemeral( |
| 100 const AccountId& account_id) const override; | 101 const AccountId& account_id) const override; |
| 102 bool IsUserCryptohomeDataEphemeral( |
| 103 const AccountId& account_id) const override; |
| 101 void AddObserver(UserManager::Observer* obs) override; | 104 void AddObserver(UserManager::Observer* obs) override; |
| 102 void RemoveObserver(UserManager::Observer* obs) override; | 105 void RemoveObserver(UserManager::Observer* obs) override; |
| 103 void AddSessionStateObserver( | 106 void AddSessionStateObserver( |
| 104 UserManager::UserSessionStateObserver* obs) override; | 107 UserManager::UserSessionStateObserver* obs) override; |
| 105 void RemoveSessionStateObserver( | 108 void RemoveSessionStateObserver( |
| 106 UserManager::UserSessionStateObserver* obs) override; | 109 UserManager::UserSessionStateObserver* obs) override; |
| 107 void NotifyLocalStateChanged() override; | 110 void NotifyLocalStateChanged() override; |
| 108 void ChangeUserChildStatus(User* user, bool is_child) override; | 111 void ChangeUserChildStatus(User* user, bool is_child) override; |
| 109 void Initialize() override; | 112 void Initialize() override; |
| 110 | 113 |
| (...skipping 273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 384 scoped_refptr<base::TaskRunner> task_runner_; | 387 scoped_refptr<base::TaskRunner> task_runner_; |
| 385 | 388 |
| 386 base::WeakPtrFactory<UserManagerBase> weak_factory_; | 389 base::WeakPtrFactory<UserManagerBase> weak_factory_; |
| 387 | 390 |
| 388 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); | 391 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); |
| 389 }; | 392 }; |
| 390 | 393 |
| 391 } // namespace user_manager | 394 } // namespace user_manager |
| 392 | 395 |
| 393 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ | 396 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
| OLD | NEW |