Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: chrome/browser/chromeos/login/users/avatar/user_image_loader.h

Issue 623293003: replace OVERRIDE and FINAL with override and final in chrome/browser/chromeos/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: run git cl format on echo_dialog_view.h Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 4
5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 void ReadAndDecodeImage(const ImageInfo& image_info); 76 void ReadAndDecodeImage(const ImageInfo& image_info);
77 77
78 // Decodes the image |data|. This method may only be invoked via the 78 // Decodes the image |data|. This method may only be invoked via the
79 // |background_task_runner_|. 79 // |background_task_runner_|.
80 void DecodeImage(const scoped_ptr<std::string> data, 80 void DecodeImage(const scoped_ptr<std::string> data,
81 const ImageInfo& image_info); 81 const ImageInfo& image_info);
82 82
83 // ImageDecoder::Delegate implementation. These callbacks will only be invoked 83 // ImageDecoder::Delegate implementation. These callbacks will only be invoked
84 // via the |background_task_runner_|. 84 // via the |background_task_runner_|.
85 virtual void OnImageDecoded(const ImageDecoder* decoder, 85 virtual void OnImageDecoded(const ImageDecoder* decoder,
86 const SkBitmap& decoded_image) OVERRIDE; 86 const SkBitmap& decoded_image) override;
87 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) OVERRIDE; 87 virtual void OnDecodeImageFailed(const ImageDecoder* decoder) override;
88 88
89 // The foreground task runner on which |this| is instantiated, Start() is 89 // The foreground task runner on which |this| is instantiated, Start() is
90 // called and LoadedCallbacks are invoked. 90 // called and LoadedCallbacks are invoked.
91 scoped_refptr<base::SequencedTaskRunner> foreground_task_runner_; 91 scoped_refptr<base::SequencedTaskRunner> foreground_task_runner_;
92 92
93 // The background task runner on which file I/O, image decoding and resizing 93 // The background task runner on which file I/O, image decoding and resizing
94 // are done. 94 // are done.
95 scoped_refptr<base::SequencedTaskRunner> background_task_runner_; 95 scoped_refptr<base::SequencedTaskRunner> background_task_runner_;
96 96
97 // Specify how the file should be decoded in the utility process. 97 // Specify how the file should be decoded in the utility process.
98 const ImageDecoder::ImageCodec image_codec_; 98 const ImageDecoder::ImageCodec image_codec_;
99 99
100 // Holds information about the images currently being decoded. Accessed via 100 // Holds information about the images currently being decoded. Accessed via
101 // |background_task_runner_| only. 101 // |background_task_runner_| only.
102 ImageInfoMap image_info_map_; 102 ImageInfoMap image_info_map_;
103 103
104 DISALLOW_COPY_AND_ASSIGN(UserImageLoader); 104 DISALLOW_COPY_AND_ASSIGN(UserImageLoader);
105 }; 105 };
106 106
107 } // namespace chromeos 107 } // namespace chromeos
108 108
109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_ 109 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_USERS_AVATAR_USER_IMAGE_LOADER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698