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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 // Returns true if the profile at the given index is currently running any | 46 // Returns true if the profile at the given index is currently running any |
47 // background apps. | 47 // background apps. |
48 virtual bool GetBackgroundStatusOfProfileAtIndex( | 48 virtual bool GetBackgroundStatusOfProfileAtIndex( |
49 size_t index) const = 0; | 49 size_t index) const = 0; |
50 | 50 |
51 virtual base::string16 GetGAIANameOfProfileAtIndex(size_t index) const = 0; | 51 virtual base::string16 GetGAIANameOfProfileAtIndex(size_t index) const = 0; |
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 // Checks if the GAIA name should be used as the profile's name. | |
57 virtual bool IsUsingGAIANameOfProfileAtIndex(size_t index) const = 0; | |
58 | |
59 virtual const gfx::Image* GetGAIAPictureOfProfileAtIndex( | 56 virtual const gfx::Image* GetGAIAPictureOfProfileAtIndex( |
60 size_t index) const = 0; | 57 size_t index) const = 0; |
61 | 58 |
62 // 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. |
63 virtual bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const = 0; | 60 virtual bool IsUsingGAIAPictureOfProfileAtIndex(size_t index) const = 0; |
64 | 61 |
65 virtual bool ProfileIsManagedAtIndex(size_t index) const = 0; | 62 virtual bool ProfileIsManagedAtIndex(size_t index) const = 0; |
66 | 63 |
67 // 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 |
68 // 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. |
(...skipping 10 matching lines...) Expand all Loading... |
79 // Returns true if the profile is using the name it was assigned by default | 76 // Returns true if the profile is using the name it was assigned by default |
80 // at creation (either the old-style "Lemonade" name, or the new "Profile %d" | 77 // at creation (either the old-style "Lemonade" name, or the new "Profile %d" |
81 // style name). | 78 // style name). |
82 virtual bool ProfileIsUsingDefaultNameAtIndex(size_t index) const = 0; | 79 virtual bool ProfileIsUsingDefaultNameAtIndex(size_t index) const = 0; |
83 | 80 |
84 protected: | 81 protected: |
85 virtual ~ProfileInfoInterface() {} | 82 virtual ~ProfileInfoInterface() {} |
86 }; | 83 }; |
87 | 84 |
88 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ | 85 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_INTERFACE_H_ |
OLD | NEW |