OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_CACHE_H_ | 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ | 6 #define CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 size_t GetNumberOfProfiles() const override; | 55 size_t GetNumberOfProfiles() const override; |
56 // Don't cache this value and reuse, because resorting the menu could cause | 56 // Don't cache this value and reuse, because resorting the menu could cause |
57 // the item being referred to to change out from under you. | 57 // the item being referred to to change out from under you. |
58 size_t GetIndexOfProfileWithPath( | 58 size_t GetIndexOfProfileWithPath( |
59 const base::FilePath& profile_path) const override; | 59 const base::FilePath& profile_path) const override; |
60 base::string16 GetNameOfProfileAtIndex(size_t index) const override; | 60 base::string16 GetNameOfProfileAtIndex(size_t index) const override; |
61 base::string16 GetShortcutNameOfProfileAtIndex(size_t index) const override; | 61 base::string16 GetShortcutNameOfProfileAtIndex(size_t index) const override; |
62 base::FilePath GetPathOfProfileAtIndex(size_t index) const override; | 62 base::FilePath GetPathOfProfileAtIndex(size_t index) const override; |
63 base::Time GetProfileActiveTimeAtIndex(size_t index) const override; | 63 base::Time GetProfileActiveTimeAtIndex(size_t index) const override; |
64 base::string16 GetUserNameOfProfileAtIndex(size_t index) const override; | 64 base::string16 GetUserNameOfProfileAtIndex(size_t index) const override; |
65 const gfx::Image& GetAvatarIconOfProfileAtIndex(size_t index) const override; | 65 const gfx::Image& GetAvatarIconOfProfileAtIndex(size_t index) override; |
66 std::string GetLocalAuthCredentialsOfProfileAtIndex( | 66 std::string GetLocalAuthCredentialsOfProfileAtIndex( |
67 size_t index) const override; | 67 size_t index) const override; |
68 // Note that a return value of false could mean an error in collection or | 68 // Note that a return value of false could mean an error in collection or |
69 // that there are currently no background apps running. However, the action | 69 // that there are currently no background apps running. However, the action |
70 // which results is the same in both cases (thus far). | 70 // which results is the same in both cases (thus far). |
71 bool GetBackgroundStatusOfProfileAtIndex(size_t index) const override; | 71 bool GetBackgroundStatusOfProfileAtIndex(size_t index) const override; |
72 base::string16 GetGAIANameOfProfileAtIndex(size_t index) const override; | 72 base::string16 GetGAIANameOfProfileAtIndex(size_t index) const override; |
73 base::string16 GetGAIAGivenNameOfProfileAtIndex(size_t index) const override; | 73 base::string16 GetGAIAGivenNameOfProfileAtIndex(size_t index) const override; |
74 // Returns the GAIA picture for the given profile. This may return NULL | 74 // Returns the GAIA picture for the given profile. This may return NULL |
75 // if the profile does not have a GAIA picture or if the picture must be | 75 // if the profile does not have a GAIA picture or if the picture must be |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 // This prevents a picture from being downloaded multiple times. The | 221 // This prevents a picture from being downloaded multiple times. The |
222 // ProfileAvatarDownloader instances are deleted when the download completes | 222 // ProfileAvatarDownloader instances are deleted when the download completes |
223 // or when the ProfileInfoCache is destroyed. | 223 // or when the ProfileInfoCache is destroyed. |
224 std::map<std::string, ProfileAvatarDownloader*> | 224 std::map<std::string, ProfileAvatarDownloader*> |
225 avatar_images_downloads_in_progress_; | 225 avatar_images_downloads_in_progress_; |
226 | 226 |
227 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); | 227 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); |
228 }; | 228 }; |
229 | 229 |
230 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ | 230 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
OLD | NEW |