Chromium Code Reviews| Index: chrome/browser/chromeos/login/user_image_loader.h |
| diff --git a/chrome/browser/chromeos/login/user_image_loader.h b/chrome/browser/chromeos/login/user_image_loader.h |
| index 2b16726abab4c0729272f942369ffd846b48eada..97d6b1288fd3a685fc63b7ba254ff5949bc2dee2 100644 |
| --- a/chrome/browser/chromeos/login/user_image_loader.h |
| +++ b/chrome/browser/chromeos/login/user_image_loader.h |
| @@ -53,9 +53,12 @@ class UserImageLoader : public base::RefCountedThreadSafe<UserImageLoader>, |
| // Contains attributes we need to know about each image we decode. |
| struct ImageInfo { |
| - ImageInfo(int size, const LoadedCallback& loaded_cb); |
| + ImageInfo(const std::string& file_path, |
| + int size, |
|
Daniel Erat
2014/04/15 03:06:30
how about renaming this to something that's cleare
Alexander Alekseev
2014/04/15 22:47:31
Done.
|
| + const LoadedCallback& loaded_cb); |
| ~ImageInfo(); |
| + const std::string file_path; |
| const int size; |
| const LoadedCallback loaded_cb; |
| }; |
| @@ -64,10 +67,9 @@ class UserImageLoader : public base::RefCountedThreadSafe<UserImageLoader>, |
| virtual ~UserImageLoader(); |
| - // Reads the image from |filepath| and starts the decoding process. This |
| - // method may only be invoked via the |background_task_runner_|. |
| - void ReadAndDecodeImage(const std::string& filepath, |
| - const ImageInfo& image_info); |
| + // Reads the image from |image_info.file_path| and starts the decoding |
| + // process. This method may only be invoked via the |background_task_runner_|. |
| + void ReadAndDecodeImage(const ImageInfo& image_info); |
| // Decodes the image |data|. This method may only be invoked via the |
| // |background_task_runner_|. |