| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Returns true if the profile at the given index is currently running any | 45 // Returns true if the profile at the given index is currently running any |
| 46 // background apps. | 46 // background apps. |
| 47 virtual bool GetBackgroundStatusOfProfileAtIndex( | 47 virtual bool GetBackgroundStatusOfProfileAtIndex( |
| 48 size_t index) const = 0; | 48 size_t index) const = 0; |
| 49 | 49 |
| 50 virtual base::string16 GetGAIANameOfProfileAtIndex(size_t index) const = 0; | 50 virtual base::string16 GetGAIANameOfProfileAtIndex(size_t index) const = 0; |
| 51 | 51 |
| 52 virtual base::string16 GetGAIAGivenNameOfProfileAtIndex( | 52 virtual base::string16 GetGAIAGivenNameOfProfileAtIndex( |
| 53 size_t index) const = 0; | 53 size_t index) const = 0; |
| 54 | 54 |
| 55 virtual std::string GetGAIAIdOfProfileAtIndex(size_t index) const = 0; |
| 56 |
| 55 virtual const gfx::Image* GetGAIAPictureOfProfileAtIndex( | 57 virtual const gfx::Image* GetGAIAPictureOfProfileAtIndex( |
| 56 size_t index) const = 0; | 58 size_t index) const = 0; |
| 57 | 59 |
| 58 // Checks if the GAIA picture should be used as the profile's avatar icon. | 60 // Checks if the GAIA picture should be used as the profile's avatar icon. |
| 59 virtual bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const = 0; | 61 virtual bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const = 0; |
| 60 | 62 |
| 61 // Returns whether the profile is supervised (either a legacy supervised | 63 // Returns whether the profile is supervised (either a legacy supervised |
| 62 // user or a child account; see SupervisedUserService). | 64 // user or a child account; see SupervisedUserService). |
| 63 virtual bool ProfileIsSupervisedAtIndex(size_t index) const = 0; | 65 virtual bool ProfileIsSupervisedAtIndex(size_t index) const = 0; |
| 64 // Returns whether the profile is associated with a child account. | 66 // Returns whether the profile is associated with a child account. |
| (...skipping 15 matching lines...) Expand all Loading... |
| 80 virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0; | 82 virtual bool ProfileIsEphemeralAtIndex(size_t index) const = 0; |
| 81 | 83 |
| 82 // Returns true if the profile is using the name it was assigned by default | 84 // Returns true if the profile is using the name it was assigned by default |
| 83 // at creation (either the old-style "Lemonade" name, or the new "Profile %d" | 85 // at creation (either the old-style "Lemonade" name, or the new "Profile %d" |
| 84 // style name). | 86 // style name). |
| 85 virtual bool ProfileIsUsingDefaultNameAtIndex(size_t index) const = 0; | 87 virtual bool ProfileIsUsingDefaultNameAtIndex(size_t index) const = 0; |
| 86 | 88 |
| 87 // Returns true if the user has never manually selected a profile avatar. | 89 // Returns true if the user has never manually selected a profile avatar. |
| 88 virtual bool ProfileIsUsingDefaultAvatarAtIndex(size_t index) const = 0; | 90 virtual bool ProfileIsUsingDefaultAvatarAtIndex(size_t index) const = 0; |
| 89 | 91 |
| 92 // Returns true if the given profile is connected to an account. |
| 93 virtual bool ProfileIsAuthenticatedAtIndex(size_t index) const = 0; |
| 94 |
| 90 protected: | 95 protected: |
| 91 virtual ~ProfileInfoInterface() {} | 96 virtual ~ProfileInfoInterface() {} |
| 92 }; | 97 }; |
| 93 | 98 |
| 94 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ | 99 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ |
| OLD | NEW |