| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_ | 4 #ifndef CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_ |
| 5 #define CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_ | 5 #define CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_ |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 8 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h" | 10 #include "chrome/browser/bitmap_fetcher/bitmap_fetcher.h" |
| 9 | 11 |
| 10 class ProfileInfoCache; | 12 class ProfileInfoCache; |
| 11 | 13 |
| 12 class ProfileAvatarDownloader : public chrome::BitmapFetcherDelegate { | 14 class ProfileAvatarDownloader : public chrome::BitmapFetcherDelegate { |
| 13 public: | 15 public: |
| 14 ProfileAvatarDownloader(size_t icon_index, | 16 ProfileAvatarDownloader(size_t icon_index, |
| 15 const base::FilePath& profile_path, | 17 const base::FilePath& profile_path, |
| 16 ProfileInfoCache* cache); | 18 ProfileInfoCache* cache); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 28 // Index of the avatar being downloaded. | 30 // Index of the avatar being downloaded. |
| 29 size_t icon_index_; | 31 size_t icon_index_; |
| 30 | 32 |
| 31 // Path of the profile for which the avatar is being downloaded. | 33 // Path of the profile for which the avatar is being downloaded. |
| 32 base::FilePath profile_path_; | 34 base::FilePath profile_path_; |
| 33 | 35 |
| 34 ProfileInfoCache* cache_; // Weak. | 36 ProfileInfoCache* cache_; // Weak. |
| 35 }; | 37 }; |
| 36 | 38 |
| 37 #endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_ | 39 #endif // CHROME_BROWSER_PROFILES_PROFILE_AVATAR_DOWNLOADER_H_ |
| OLD | NEW |