| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 size_t GetNumberOfProfiles() const override; | 56 size_t GetNumberOfProfiles() const override; |
| 57 // Don't cache this value and reuse, because resorting the menu could cause | 57 // Don't cache this value and reuse, because resorting the menu could cause |
| 58 // the item being referred to to change out from under you. | 58 // the item being referred to to change out from under you. |
| 59 size_t GetIndexOfProfileWithPath( | 59 size_t GetIndexOfProfileWithPath( |
| 60 const base::FilePath& profile_path) const override; | 60 const base::FilePath& profile_path) const override; |
| 61 base::string16 GetNameOfProfileAtIndex(size_t index) const override; | 61 base::string16 GetNameOfProfileAtIndex(size_t index) const override; |
| 62 base::string16 GetShortcutNameOfProfileAtIndex(size_t index) const override; | 62 base::string16 GetShortcutNameOfProfileAtIndex(size_t index) const override; |
| 63 base::FilePath GetPathOfProfileAtIndex(size_t index) const override; | 63 base::FilePath GetPathOfProfileAtIndex(size_t index) const override; |
| 64 base::Time GetProfileActiveTimeAtIndex(size_t index) const override; | 64 base::Time GetProfileActiveTimeAtIndex(size_t index) const override; |
| 65 base::string16 GetUserNameOfProfileAtIndex(size_t index) const override; | 65 base::string16 GetUserNameOfProfileAtIndex(size_t index) const override; |
| 66 const gfx::Image& GetAvatarIconOfProfileAtIndex(size_t index) override; | 66 const gfx::Image& GetAvatarIconOfProfileAtIndex(size_t index) const override; |
| 67 std::string GetLocalAuthCredentialsOfProfileAtIndex( | 67 std::string GetLocalAuthCredentialsOfProfileAtIndex( |
| 68 size_t index) const override; | 68 size_t index) const override; |
| 69 // Note that a return value of false could mean an error in collection or | 69 // Note that a return value of false could mean an error in collection or |
| 70 // that there are currently no background apps running. However, the action | 70 // that there are currently no background apps running. However, the action |
| 71 // which results is the same in both cases (thus far). | 71 // which results is the same in both cases (thus far). |
| 72 bool GetBackgroundStatusOfProfileAtIndex(size_t index) const override; | 72 bool GetBackgroundStatusOfProfileAtIndex(size_t index) const override; |
| 73 base::string16 GetGAIANameOfProfileAtIndex(size_t index) const override; | 73 base::string16 GetGAIANameOfProfileAtIndex(size_t index) const override; |
| 74 base::string16 GetGAIAGivenNameOfProfileAtIndex(size_t index) const override; | 74 base::string16 GetGAIAGivenNameOfProfileAtIndex(size_t index) const override; |
| 75 std::string GetGAIAIdOfProfileAtIndex(size_t index) const override; | 75 std::string GetGAIAIdOfProfileAtIndex(size_t index) const override; |
| 76 // Returns the GAIA picture for the given profile. This may return NULL | 76 // Returns the GAIA picture for the given profile. This may return NULL |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 236 avatar_images_downloads_in_progress_; | 236 avatar_images_downloads_in_progress_; |
| 237 | 237 |
| 238 // Determines of the ProfileAvatarDownloader should be created and executed | 238 // Determines of the ProfileAvatarDownloader should be created and executed |
| 239 // or not. Only set to true for tests. | 239 // or not. Only set to true for tests. |
| 240 bool disable_avatar_download_for_testing_; | 240 bool disable_avatar_download_for_testing_; |
| 241 | 241 |
| 242 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); | 242 DISALLOW_COPY_AND_ASSIGN(ProfileInfoCache); |
| 243 }; | 243 }; |
| 244 | 244 |
| 245 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ | 245 #endif // CHROME_BROWSER_PROFILES_PROFILE_INFO_CACHE_H_ |
| OLD | NEW |