Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(311)

Side by Side Diff: components/user_manager/user_manager_base.h

Issue 2568973002: chromeos: Replace user image notifications with observer (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « components/user_manager/user_manager.cc ('k') | components/user_manager/user_manager_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « components/user_manager/user_manager.cc ('k') | components/user_manager/user_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698