| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_PROFILES_AVATAR_MENU_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 6 #define CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 | 49 |
| 50 // The icon to be displayed next to the item. | 50 // The icon to be displayed next to the item. |
| 51 gfx::Image icon; | 51 gfx::Image icon; |
| 52 | 52 |
| 53 // Whether or not the current browser is using this profile. | 53 // Whether or not the current browser is using this profile. |
| 54 bool active; | 54 bool active; |
| 55 | 55 |
| 56 // The name of this profile. | 56 // The name of this profile. |
| 57 base::string16 name; | 57 base::string16 name; |
| 58 | 58 |
| 59 // A string representing the sync state of the profile. | 59 // A string representing the username of the profile, if signed in. Empty |
| 60 base::string16 sync_state; | 60 // when not signed in. |
| 61 base::string16 username; |
| 61 | 62 |
| 62 // Whether or not the current profile is signed in. If true, |sync_state| is | 63 // Whether or not the current profile is signed in. If true, |sync_state| is |
| 63 // expected to be the email of the signed in user. | 64 // expected to be the email of the signed in user. |
| 64 bool signed_in; | 65 bool signed_in; |
| 65 | 66 |
| 66 // Whether or not the current profile requires sign-in before use. | 67 // Whether or not the current profile requires sign-in before use. |
| 67 bool signin_required; | 68 bool signin_required; |
| 68 | 69 |
| 69 // Whether or not the current profile is a legacy supervised user profile | 70 // Whether or not the current profile is a legacy supervised user profile |
| 70 // (see SupervisedUserService). | 71 // (see SupervisedUserService). |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 150 // Returns true if the edit profile link should be shown. | 151 // Returns true if the edit profile link should be shown. |
| 151 bool ShouldShowEditProfileLink() const; | 152 bool ShouldShowEditProfileLink() const; |
| 152 | 153 |
| 153 private: | 154 private: |
| 154 // ProfileInfoCacheObserver: | 155 // ProfileInfoCacheObserver: |
| 155 void OnProfileAdded(const base::FilePath& profile_path) override; | 156 void OnProfileAdded(const base::FilePath& profile_path) override; |
| 156 void OnProfileWasRemoved(const base::FilePath& profile_path, | 157 void OnProfileWasRemoved(const base::FilePath& profile_path, |
| 157 const base::string16& profile_name) override; | 158 const base::string16& profile_name) override; |
| 158 void OnProfileNameChanged(const base::FilePath& profile_path, | 159 void OnProfileNameChanged(const base::FilePath& profile_path, |
| 159 const base::string16& old_profile_name) override; | 160 const base::string16& old_profile_name) override; |
| 160 void OnProfileUserNameChanged(const base::FilePath& profile_path) override; | 161 void OnProfileAuthInfoChanged(const base::FilePath& profile_path) override; |
| 161 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; | 162 void OnProfileAvatarChanged(const base::FilePath& profile_path) override; |
| 162 void OnProfileHighResAvatarLoaded( | 163 void OnProfileHighResAvatarLoaded( |
| 163 const base::FilePath& profile_path) override; | 164 const base::FilePath& profile_path) override; |
| 164 void OnProfileSigninRequiredChanged( | 165 void OnProfileSigninRequiredChanged( |
| 165 const base::FilePath& profile_path) override; | 166 const base::FilePath& profile_path) override; |
| 166 void OnProfileIsOmittedChanged(const base::FilePath& profile_path) override; | 167 void OnProfileIsOmittedChanged(const base::FilePath& profile_path) override; |
| 167 | 168 |
| 168 #if defined(ENABLE_SUPERVISED_USERS) | 169 #if defined(ENABLE_SUPERVISED_USERS) |
| 169 // SupervisedUserServiceObserver: | 170 // SupervisedUserServiceObserver: |
| 170 void OnCustodianInfoChanged() override; | 171 void OnCustodianInfoChanged() override; |
| (...skipping 20 matching lines...) Expand all Loading... |
| 191 // The observer of this model, which is notified of changes. Weak. | 192 // The observer of this model, which is notified of changes. Weak. |
| 192 AvatarMenuObserver* observer_; | 193 AvatarMenuObserver* observer_; |
| 193 | 194 |
| 194 // Browser in which this avatar menu resides. Weak. | 195 // Browser in which this avatar menu resides. Weak. |
| 195 Browser* browser_; | 196 Browser* browser_; |
| 196 | 197 |
| 197 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); | 198 DISALLOW_COPY_AND_ASSIGN(AvatarMenu); |
| 198 }; | 199 }; |
| 199 | 200 |
| 200 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ | 201 #endif // CHROME_BROWSER_PROFILES_AVATAR_MENU_H_ |
| OLD | NEW |