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

Unified Diff: content/public/browser/web_contents.h

Issue 12780024: Split FaviconHelper in two: ImageLoadingHelper and FaviconHelper (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: similarity=20 Created 7 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: content/public/browser/web_contents.h
diff --git a/content/public/browser/web_contents.h b/content/public/browser/web_contents.h
index 22f0fabafbb7a1f59683d2d9b18d53b61684f2fa..eda2ed57635d74aba15cd79c57684dcb32c1bc2b 100644
--- a/content/public/browser/web_contents.h
+++ b/content/public/browser/web_contents.h
@@ -412,19 +412,19 @@ class WebContents : public PageNavigator,
const GURL&, /* image_url */
int, /* requested_size */
const std::vector<SkBitmap>& /* bitmaps*/)>
- FaviconDownloadCallback;
+ ImageDownloadCallback;
- // Sends a request to download the given favicon |url| and returns the unique
+ // Sends a request to download the given image |url| and returns the unique
// id of the download request. When the download is finished, |callback| will
// be called with the bitmaps received from the renderer. If [is_favicon|,
Cait (Slow) 2013/03/28 19:10:18 nit: [is_favicon| --> |is_favicon| maybe also add
Dmitry Titov 2013/03/28 22:52:40 Done.
// the cookeis are not sent and not accepted during download. Note that
Cait (Slow) 2013/03/28 19:10:18 nit: cookeis--> cookies
Dmitry Titov 2013/03/28 22:52:40 Done.
// |image_size| is a hint for images with multiple sizes. The downloaded image
// is not resized to the given image_size. If 0 is passed, the first frame of
// the image is returned.
- virtual int DownloadFavicon(const GURL& url,
- bool is_favicon,
- int image_size,
- const FaviconDownloadCallback& callback) = 0;
+ virtual int DownloadImage(const GURL& url,
+ bool is_favicon,
+ int image_size,
+ const ImageDownloadCallback& callback) = 0;
private:
// This interface should only be implemented inside content.

Powered by Google App Engine
This is Rietveld 408576698