| 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 21 matching lines...) Expand all Loading... |
| 32 | 32 |
| 33 virtual base::string16 GetNameOfProfileAtIndex(size_t index) const = 0; | 33 virtual base::string16 GetNameOfProfileAtIndex(size_t index) const = 0; |
| 34 | 34 |
| 35 virtual base::string16 GetShortcutNameOfProfileAtIndex( | 35 virtual base::string16 GetShortcutNameOfProfileAtIndex( |
| 36 size_t index) const = 0; | 36 size_t index) const = 0; |
| 37 | 37 |
| 38 virtual base::FilePath GetPathOfProfileAtIndex(size_t index) const = 0; | 38 virtual base::FilePath GetPathOfProfileAtIndex(size_t index) const = 0; |
| 39 | 39 |
| 40 virtual base::string16 GetUserNameOfProfileAtIndex(size_t index) const = 0; | 40 virtual base::string16 GetUserNameOfProfileAtIndex(size_t index) const = 0; |
| 41 | 41 |
| 42 virtual const gfx::Image& GetAvatarIconOfProfileAtIndex(size_t index) = 0; | 42 virtual const gfx::Image& GetAvatarIconOfProfileAtIndex( |
| 43 size_t index) const = 0; |
| 43 | 44 |
| 44 virtual std::string GetLocalAuthCredentialsOfProfileAtIndex( | 45 virtual std::string GetLocalAuthCredentialsOfProfileAtIndex( |
| 45 size_t index) const = 0; | 46 size_t index) const = 0; |
| 46 virtual std::string GetPasswordChangeDetectionTokenAtIndex( | 47 virtual std::string GetPasswordChangeDetectionTokenAtIndex( |
| 47 size_t index) const = 0; | 48 size_t index) const = 0; |
| 48 | 49 |
| 49 // Returns true if the profile at the given index is currently running any | 50 // Returns true if the profile at the given index is currently running any |
| 50 // background apps. | 51 // background apps. |
| 51 virtual bool GetBackgroundStatusOfProfileAtIndex( | 52 virtual bool GetBackgroundStatusOfProfileAtIndex( |
| 52 size_t index) const = 0; | 53 size_t index) const = 0; |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 virtual bool ProfileIsUsingDefaultAvatarAtIndex(size_t index) const = 0; | 96 virtual bool ProfileIsUsingDefaultAvatarAtIndex(size_t index) const = 0; |
| 96 | 97 |
| 97 // Returns true if the given profile is connected to an account. | 98 // Returns true if the given profile is connected to an account. |
| 98 virtual bool ProfileIsAuthenticatedAtIndex(size_t index) const = 0; | 99 virtual bool ProfileIsAuthenticatedAtIndex(size_t index) const = 0; |
| 99 | 100 |
| 100 protected: | 101 protected: |
| 101 virtual ~ProfileInfoInterface() {} | 102 virtual ~ProfileInfoInterface() {} |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ | 105 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ |
| OLD | NEW |