summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/image_loading_tracker.h
diff options
context:
space:
mode:
authorfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 17:41:48 +0000
committerfinnur@chromium.org <finnur@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-03-23 17:41:48 +0000
commit3250a9685849b81e915c74474ac0fbb7fca4d16a (patch)
tree10a98ceb4c5044af3da5d48304a91a12f4bb45f4 /chrome/browser/extensions/image_loading_tracker.h
parent9f221e935d57a911844598748f9fde346a96e464 (diff)
downloadchromium_src-3250a9685849b81e915c74474ac0fbb7fca4d16a.zip
chromium_src-3250a9685849b81e915c74474ac0fbb7fca4d16a.tar.gz
chromium_src-3250a9685849b81e915c74474ac0fbb7fca4d16a.tar.bz2
Revert 42283 - Adds the source ImageLoadingTracker to OnImageLoaded. I need this in a
callback so that I can identify where the image is coming from. [Reverter's note: There is nothing wrong with this CL per se, except that I'm going to make it obsolete in my next checkin, so since noone is relying on this change yet, it is better to revert it than to have a painful merge] BUG=none TEST=none Review URL: http://codereview.chromium.org/1167004 TBR=sky@chromium.org Review URL: http://codereview.chromium.org/1077011 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@42354 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/image_loading_tracker.h')
-rw-r--r--chrome/browser/extensions/image_loading_tracker.h10
1 files changed, 3 insertions, 7 deletions
diff --git a/chrome/browser/extensions/image_loading_tracker.h b/chrome/browser/extensions/image_loading_tracker.h
index c908bab..23f7b71 100644
--- a/chrome/browser/extensions/image_loading_tracker.h
+++ b/chrome/browser/extensions/image_loading_tracker.h
@@ -21,22 +21,18 @@ class Size;
// Consider abstracting out a FilePathProvider (ExtensionResource) and moving
// back to chrome/browser/ if other subsystems want to use it.
class ImageLoadingTracker
- : public base::RefCountedThreadSafe<ImageLoadingTracker> {
+ : public base::RefCountedThreadSafe<ImageLoadingTracker> {
public:
class Observer {
public:
// Will be called when the image with the given index has loaded.
// The |image| is owned by the tracker, so the observer should make a copy
// if they need to access it after this call.
- virtual void OnImageLoaded(ImageLoadingTracker* source,
- SkBitmap* image,
- size_t index) = 0;
+ virtual void OnImageLoaded(SkBitmap* image, size_t index) = 0;
};
ImageLoadingTracker(Observer* observer, size_t image_count)
- : observer_(observer),
- image_count_(image_count),
- posted_count_(0) {
+ : observer_(observer), image_count_(image_count), posted_count_(0) {
AddRef(); // We hold on to a reference to ourself to make sure we don't
// get deleted until we get a response from image loading (see
// ImageLoadingDone).