| 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 virtual bool ProfileIsManagedAtIndex(size_t index) const = 0; | 62 virtual bool ProfileIsSupervisedAtIndex(size_t index) const = 0; |
| 63 | 63 |
| 64 // Returns true if the profile should be omitted from the desktop profile | 64 // 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. | 65 // list (see ProfileListDesktop), so it won't appear in the avatar menu. |
| 66 virtual bool IsOmittedProfileAtIndex(size_t index) const = 0; | 66 virtual bool IsOmittedProfileAtIndex(size_t index) const = 0; |
| 67 | 67 |
| 68 virtual std::string GetManagedUserIdOfProfileAtIndex(size_t index) const = 0; | 68 virtual std::string GetSupervisedUserIdOfProfileAtIndex( |
| 69 size_t index) const = 0; |
| 69 | 70 |
| 70 // This profile is associated with an account but has been signed-out. | 71 // This profile is associated with an account but has been signed-out. |
| 71 virtual bool ProfileIsSigninRequiredAtIndex(size_t index) const = 0; | 72 virtual bool ProfileIsSigninRequiredAtIndex(size_t index) const = 0; |
| 72 | 73 |
| 73 // Profile is known to be ephemeral and should be deleted when closed. | 74 // Profile is known to be ephemeral and should be deleted when closed. |
| 74 virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0; | 75 virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0; |
| 75 | 76 |
| 76 // Returns true if the profile is using the name it was assigned by default | 77 // Returns true if the profile is using the name it was assigned by default |
| 77 // at creation (either the old-style "Lemonade" name, or the new "Profile %d" | 78 // at creation (either the old-style "Lemonade" name, or the new "Profile %d" |
| 78 // style name). | 79 // style name). |
| 79 virtual bool ProfileIsUsingDefaultNameAtIndex(size_t index) const = 0; | 80 virtual bool ProfileIsUsingDefaultNameAtIndex(size_t index) const = 0; |
| 80 | 81 |
| 81 protected: | 82 protected: |
| 82 virtual ~ProfileInfoInterface() {} | 83 virtual ~ProfileInfoInterface() {} |
| 83 }; | 84 }; |
| 84 | 85 |
| 85 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ | 86 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ |
| OLD | NEW |