| 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 CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/containers/hash_tables.h" | |
| 14 #include "base/macros.h" | 13 #include "base/macros.h" |
| 15 #include "base/memory/linked_ptr.h" | 14 #include "base/memory/linked_ptr.h" |
| 16 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
| 17 #include "base/observer_list.h" | 16 #include "base/observer_list.h" |
| 18 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 19 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 20 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" | 19 #include "chrome/browser/chromeos/login/easy_unlock/bootstrap_manager.h" |
| 21 #include "chrome/browser/chromeos/login/user_flow.h" | 20 #include "chrome/browser/chromeos/login/user_flow.h" |
| 22 #include "chrome/browser/chromeos/login/users/affiliation.h" | 21 #include "chrome/browser/chromeos/login/users/affiliation.h" |
| 23 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h" | 22 #include "chrome/browser/chromeos/login/users/avatar/user_image_manager_impl.h" |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 void RegularUserLoggedInAsEphemeral(const AccountId& account_id) override; | 170 void RegularUserLoggedInAsEphemeral(const AccountId& account_id) override; |
| 172 void SupervisedUserLoggedIn(const AccountId& account_id) override; | 171 void SupervisedUserLoggedIn(const AccountId& account_id) override; |
| 173 bool HasPendingBootstrap(const AccountId& account_id) const override; | 172 bool HasPendingBootstrap(const AccountId& account_id) const override; |
| 174 | 173 |
| 175 private: | 174 private: |
| 176 friend class SupervisedUserManagerImpl; | 175 friend class SupervisedUserManagerImpl; |
| 177 friend class UserManagerTest; | 176 friend class UserManagerTest; |
| 178 friend class WallpaperManager; | 177 friend class WallpaperManager; |
| 179 friend class WallpaperManagerTest; | 178 friend class WallpaperManagerTest; |
| 180 | 179 |
| 181 using UserImageManagerMap = | 180 using UserImageManagerMap = std::map<AccountId, linked_ptr<UserImageManager>>; |
| 182 base::hash_map<AccountId, linked_ptr<UserImageManager> >; | |
| 183 | 181 |
| 184 ChromeUserManagerImpl(); | 182 ChromeUserManagerImpl(); |
| 185 | 183 |
| 186 // Retrieves trusted device policies and removes users from the persistent | 184 // Retrieves trusted device policies and removes users from the persistent |
| 187 // list if ephemeral users are enabled. Schedules a callback to itself if | 185 // list if ephemeral users are enabled. Schedules a callback to itself if |
| 188 // trusted device policies are not yet available. | 186 // trusted device policies are not yet available. |
| 189 void RetrieveTrustedDevicePolicies(); | 187 void RetrieveTrustedDevicePolicies(); |
| 190 | 188 |
| 191 // If data for a device local account is marked as pending removal and the | 189 // If data for a device local account is marked as pending removal and the |
| 192 // user is no longer logged into that account, removes the data. | 190 // user is no longer logged into that account, removes the data. |
| (...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 std::unique_ptr<BootstrapManager> bootstrap_manager_; | 281 std::unique_ptr<BootstrapManager> bootstrap_manager_; |
| 284 | 282 |
| 285 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_; | 283 base::WeakPtrFactory<ChromeUserManagerImpl> weak_factory_; |
| 286 | 284 |
| 287 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl); | 285 DISALLOW_COPY_AND_ASSIGN(ChromeUserManagerImpl); |
| 288 }; | 286 }; |
| 289 | 287 |
| 290 } // namespace chromeos | 288 } // namespace chromeos |
| 291 | 289 |
| 292 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ | 290 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_CHROME_USER_MANAGER_IMPL_H_ |
| OLD | NEW |