| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_PROFILE_INFO_INTERFACE_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ |
| 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ |
| 7 | 7 |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 10 | 10 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 52 | 52 |
| 53 virtual base::string16 GetGAIAGivenNameOfProfileAtIndex( | 53 virtual base::string16 GetGAIAGivenNameOfProfileAtIndex( |
| 54 size_t index) const = 0; | 54 size_t index) const = 0; |
| 55 | 55 |
| 56 virtual const gfx::Image* GetGAIAPictureOfProfileAtIndex( | 56 virtual const gfx::Image* GetGAIAPictureOfProfileAtIndex( |
| 57 size_t index) const = 0; | 57 size_t index) const = 0; |
| 58 | 58 |
| 59 // Checks if the GAIA picture should be used as the profile's avatar icon. | 59 // Checks if the GAIA picture should be used as the profile's avatar icon. |
| 60 virtual bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const = 0; | 60 virtual bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const = 0; |
| 61 | 61 |
| 62 // Returns whether the profile is supervised (either a legacy supervised |
| 63 // user or a child account; see SupervisedUserService). |
| 62 virtual bool ProfileIsSupervisedAtIndex(size_t index) const = 0; | 64 virtual bool ProfileIsSupervisedAtIndex(size_t index) const = 0; |
| 65 // Returns whether the profile is associated with a child account. |
| 66 virtual bool ProfileIsChildAtIndex(size_t index) const = 0; |
| 67 // Returns whether the profile is a legacy supervised user profile. |
| 68 virtual bool ProfileIsLegacySupervisedAtIndex(size_t index) const = 0; |
| 63 | 69 |
| 64 // Returns true if the profile should be omitted from the desktop profile | 70 // Returns true if the profile should be omitted from the desktop profile |
| 65 // list (see ProfileListDesktop), so it won't appear in the avatar menu. | 71 // list (see ProfileListDesktop), so it won't appear in the avatar menu. |
| 66 virtual bool IsOmittedProfileAtIndex(size_t index) const = 0; | 72 virtual bool IsOmittedProfileAtIndex(size_t index) const = 0; |
| 67 | 73 |
| 68 virtual std::string GetSupervisedUserIdOfProfileAtIndex( | 74 virtual std::string GetSupervisedUserIdOfProfileAtIndex( |
| 69 size_t index) const = 0; | 75 size_t index) const = 0; |
| 70 | 76 |
| 71 // This profile is associated with an account but has been signed-out. | 77 // This profile is associated with an account but has been signed-out. |
| 72 virtual bool ProfileIsSigninRequiredAtIndex(size_t index) const = 0; | 78 virtual bool ProfileIsSigninRequiredAtIndex(size_t index) const = 0; |
| 73 | 79 |
| 74 // Profile is known to be ephemeral and should be deleted when closed. | 80 // Profile is known to be ephemeral and should be deleted when closed. |
| 75 virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0; | 81 virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0; |
| 76 | 82 |
| 77 // Returns true if the profile is using the name it was assigned by default | 83 // Returns true if the profile is using the name it was assigned by default |
| 78 // at creation (either the old-style "Lemonade" name, or the new "Profile %d" | 84 // at creation (either the old-style "Lemonade" name, or the new "Profile %d" |
| 79 // style name). | 85 // style name). |
| 80 virtual bool ProfileIsUsingDefaultNameAtIndex(size_t index) const = 0; | 86 virtual bool ProfileIsUsingDefaultNameAtIndex(size_t index) const = 0; |
| 81 | 87 |
| 82 // Returns true if the user has never manually selected a profile avatar. | 88 // Returns true if the user has never manually selected a profile avatar. |
| 83 virtual bool ProfileIsUsingDefaultAvatarAtIndex(size_t index) const = 0; | 89 virtual bool ProfileIsUsingDefaultAvatarAtIndex(size_t index) const = 0; |
| 84 | 90 |
| 85 protected: | 91 protected: |
| 86 virtual ~ProfileInfoInterface() {} | 92 virtual ~ProfileInfoInterface() {} |
| 87 }; | 93 }; |
| 88 | 94 |
| 89 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ | 95 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ |
| OLD | NEW |