| 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 CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 bool IsLoggedInAsUserWithGaiaAccount() const override; | 88 bool IsLoggedInAsUserWithGaiaAccount() const override; |
| 89 bool IsLoggedInAsChildUser() const override; | 89 bool IsLoggedInAsChildUser() const override; |
| 90 bool IsLoggedInAsPublicAccount() const override; | 90 bool IsLoggedInAsPublicAccount() const override; |
| 91 bool IsLoggedInAsGuest() const override; | 91 bool IsLoggedInAsGuest() const override; |
| 92 bool IsLoggedInAsSupervisedUser() const override; | 92 bool IsLoggedInAsSupervisedUser() const override; |
| 93 bool IsLoggedInAsKioskApp() const override; | 93 bool IsLoggedInAsKioskApp() const override; |
| 94 bool IsLoggedInAsArcKioskApp() const override; | 94 bool IsLoggedInAsArcKioskApp() const override; |
| 95 bool IsLoggedInAsStub() const override; | 95 bool IsLoggedInAsStub() const override; |
| 96 bool IsUserNonCryptohomeDataEphemeral( | 96 bool IsUserNonCryptohomeDataEphemeral( |
| 97 const AccountId& account_id) const override; | 97 const AccountId& account_id) const override; |
| 98 void AddObserver(UserManager::Observer* obs) override; | |
| 99 void RemoveObserver(UserManager::Observer* obs) override; | |
| 100 void AddSessionStateObserver( | |
| 101 UserManager::UserSessionStateObserver* obs) override; | |
| 102 void RemoveSessionStateObserver( | |
| 103 UserManager::UserSessionStateObserver* obs) override; | |
| 104 void NotifyLocalStateChanged() override; | |
| 105 void ChangeUserChildStatus(user_manager::User* user, bool is_child) override; | 98 void ChangeUserChildStatus(user_manager::User* user, bool is_child) override; |
| 106 bool AreSupervisedUsersAllowed() const override; | 99 bool AreSupervisedUsersAllowed() const override; |
| 107 PrefService* GetLocalState() const override; | 100 PrefService* GetLocalState() const override; |
| 108 bool GetPlatformKnownUserId(const std::string& user_email, | 101 bool GetPlatformKnownUserId(const std::string& user_email, |
| 109 const std::string& gaia_id, | 102 const std::string& gaia_id, |
| 110 AccountId* out_account_id) const override; | 103 AccountId* out_account_id) const override; |
| 111 const AccountId& GetGuestAccountId() const override; | 104 const AccountId& GetGuestAccountId() const override; |
| 112 bool IsFirstExecAfterBoot() const override; | 105 bool IsFirstExecAfterBoot() const override; |
| 113 void AsyncRemoveCryptohome(const AccountId& account_id) const override; | 106 void AsyncRemoveCryptohome(const AccountId& account_id) const override; |
| 114 bool IsGuestAccountId(const AccountId& account_id) const override; | 107 bool IsGuestAccountId(const AccountId& account_id) const override; |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 // Specific flows by user e-mail. | 202 // Specific flows by user e-mail. |
| 210 // Keys should be canonicalized before access. | 203 // Keys should be canonicalized before access. |
| 211 FlowMap specific_flows_; | 204 FlowMap specific_flows_; |
| 212 | 205 |
| 213 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); | 206 DISALLOW_COPY_AND_ASSIGN(FakeChromeUserManager); |
| 214 }; | 207 }; |
| 215 | 208 |
| 216 } // namespace chromeos | 209 } // namespace chromeos |
| 217 | 210 |
| 218 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ | 211 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_FAKE_CHROME_USER_MANAGER_H_ |
| OLD | NEW |