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

Unified Diff: chrome/browser/bitmap_fetcher/bitmap_fetcher.h

Issue 931993002: Make image_decoder a Leaky LazyInstance (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Small changes based on review from Antony Created 5 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/bitmap_fetcher/bitmap_fetcher.h
diff --git a/chrome/browser/bitmap_fetcher/bitmap_fetcher.h b/chrome/browser/bitmap_fetcher/bitmap_fetcher.h
index ac26bbf6d36d4a9d0c5c79bb8cbd00b3699acfdb..bf26a430b891e92f0f3495dae0a7232dc1acce3c 100644
--- a/chrome/browser/bitmap_fetcher/bitmap_fetcher.h
+++ b/chrome/browser/bitmap_fetcher/bitmap_fetcher.h
@@ -59,18 +59,16 @@ class BitmapFetcher : public net::URLFetcherDelegate,
// Called when image is decoded. |decoder| is used to identify the image in
// case of decoding several images simultaneously. This will not be called
// on the UI thread.
- void OnImageDecoded(const ImageDecoder* decoder,
- const SkBitmap& decoded_image) override;
+ void OnImageDecoded(const SkBitmap& decoded_image) override;
// Called when decoding image failed.
- void OnDecodeImageFailed(const ImageDecoder* decoder) override;
+ void OnDecodeImageFailed() override;
private:
// Alerts the delegate that a failure occurred.
void ReportFailure();
scoped_ptr<net::URLFetcher> url_fetcher_;
- scoped_refptr<ImageDecoder> image_decoder_;
const GURL url_;
BitmapFetcherDelegate* const delegate_;

Powered by Google App Engine
This is Rietveld 408576698