| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 const AccountId& account_id) const override; | 97 const AccountId& account_id) const override; |
| 98 bool IsUserCryptohomeDataEphemeral( | 98 bool IsUserCryptohomeDataEphemeral( |
| 99 const AccountId& account_id) const override; | 99 const AccountId& account_id) const override; |
| 100 void AddObserver(UserManager::Observer* obs) override; | 100 void AddObserver(UserManager::Observer* obs) override; |
| 101 void RemoveObserver(UserManager::Observer* obs) override; | 101 void RemoveObserver(UserManager::Observer* obs) override; |
| 102 void AddSessionStateObserver( | 102 void AddSessionStateObserver( |
| 103 UserManager::UserSessionStateObserver* obs) override; | 103 UserManager::UserSessionStateObserver* obs) override; |
| 104 void RemoveSessionStateObserver( | 104 void RemoveSessionStateObserver( |
| 105 UserManager::UserSessionStateObserver* obs) override; | 105 UserManager::UserSessionStateObserver* obs) override; |
| 106 void NotifyLocalStateChanged() override; | 106 void NotifyLocalStateChanged() override; |
| 107 void NotifyUserImageChanged(const User& user) override; |
| 108 void NotifyUserProfileImageUpdateFailed(const User& user) override; |
| 109 void NotifyUserProfileImageUpdated( |
| 110 const User& user, |
| 111 const gfx::ImageSkia& profile_image) override; |
| 107 void ChangeUserChildStatus(User* user, bool is_child) override; | 112 void ChangeUserChildStatus(User* user, bool is_child) override; |
| 108 void Initialize() override; | 113 void Initialize() override; |
| 109 | 114 |
| 110 // This method updates "User was added to the device in this session nad is | 115 // This method updates "User was added to the device in this session nad is |
| 111 // not full initialized yet" flag. | 116 // not full initialized yet" flag. |
| 112 virtual void SetIsCurrentUserNew(bool is_new); | 117 virtual void SetIsCurrentUserNew(bool is_new); |
| 113 | 118 |
| 114 // TODO(xiyuan): Figure out a better way to expose this info. | 119 // TODO(xiyuan): Figure out a better way to expose this info. |
| 115 virtual bool HasPendingBootstrap(const AccountId& account_id) const; | 120 virtual bool HasPendingBootstrap(const AccountId& account_id) const; |
| 116 | 121 |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 383 scoped_refptr<base::TaskRunner> task_runner_; | 388 scoped_refptr<base::TaskRunner> task_runner_; |
| 384 | 389 |
| 385 base::WeakPtrFactory<UserManagerBase> weak_factory_; | 390 base::WeakPtrFactory<UserManagerBase> weak_factory_; |
| 386 | 391 |
| 387 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); | 392 DISALLOW_COPY_AND_ASSIGN(UserManagerBase); |
| 388 }; | 393 }; |
| 389 | 394 |
| 390 } // namespace user_manager | 395 } // namespace user_manager |
| 391 | 396 |
| 392 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ | 397 #endif // COMPONENTS_USER_MANAGER_USER_MANAGER_BASE_H_ |
| OLD | NEW |