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

Unified Diff: chrome/browser/favicon/favicon_download_helper.h

Issue 11411180: move favicon download code from chrome/ into content/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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/favicon/favicon_download_helper.h
diff --git a/chrome/browser/favicon/favicon_download_helper.h b/chrome/browser/favicon/favicon_download_helper.h
index 195b3354da5b47dfdf0d6492f62cffd3eac154c5..e76b614a1ac744cab45b7a2ea6486849d76c408c 100644
--- a/chrome/browser/favicon/favicon_download_helper.h
+++ b/chrome/browser/favicon/favicon_download_helper.h
@@ -9,8 +9,8 @@
#include "base/basictypes.h"
#include "base/memory/ref_counted.h"
-#include "chrome/common/favicon_url.h"
#include "content/public/browser/web_contents_observer.h"
+#include "content/public/common/favicon_url.h"
namespace content {
class WebContents;
@@ -33,10 +33,10 @@ class FaviconDownloadHelper : public content::WebContentsObserver {
virtual ~FaviconDownloadHelper();
- // Download the favicon at |url|. Returns the unique id of the download
- // request. The id will be passed to
- // FaviconDownloadHelperDelegate::OnDidDownloadFavicon() once the favicon has
- // been retrieved.
+ // Starts the download of the given favicon |url| and returns the unique id of
+ // the download request. When the download is finished, an
+ // IconHostMsg_DidDownloadFavicon IPC message will be sent and passed on to
jam 2012/11/27 01:16:31 nit: don't describe the implementation details, es
Cait (Slow) 2012/11/28 00:11:45 Done.
+ // the delegate via FaviconDownloadHelperDelegate::OnDidDownloadFavicon().
// Note that |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.
@@ -61,7 +61,7 @@ class FaviconDownloadHelper : public content::WebContentsObserver {
// Message Handler, called when the FaviconURL associated with the specified
// page is updated.
void OnUpdateFaviconURL(int32 page_id,
- const std::vector<FaviconURL>& candidates);
+ const std::vector<content::FaviconURL>& candidates);
// Delegate to pass Favicon bitmaps back to. Weak.
FaviconDownloadHelperDelegate* delegate_;
« no previous file with comments | « no previous file | chrome/browser/favicon/favicon_download_helper.cc » ('j') | chrome/browser/favicon/favicon_download_helper.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698