| Index: chrome/browser/favicon/favicon_tab_helper.h
|
| diff --git a/chrome/browser/favicon/favicon_tab_helper.h b/chrome/browser/favicon/favicon_tab_helper.h
|
| index 4dac6874a0a5354c38625c9765619e8ccf6cff49..5825ed8bb49133158d79bd60b74cf1629c06a7d8 100644
|
| --- a/chrome/browser/favicon/favicon_tab_helper.h
|
| +++ b/chrome/browser/favicon/favicon_tab_helper.h
|
| @@ -9,19 +9,18 @@
|
|
|
| #include "base/basictypes.h"
|
| #include "base/callback.h"
|
| -#include "chrome/browser/favicon/favicon_download_helper_delegate.h"
|
| #include "chrome/browser/favicon/favicon_handler_delegate.h"
|
| #include "chrome/browser/history/history_types.h"
|
| -#include "chrome/common/favicon_url.h"
|
| +#include "content/public/browser/favicon_download_delegate.h"
|
| #include "content/public/browser/web_contents_observer.h"
|
| #include "content/public/browser/web_contents_user_data.h"
|
| +#include "content/public/common/favicon_url.h"
|
|
|
| namespace gfx {
|
| class Image;
|
| }
|
|
|
| class GURL;
|
| -class FaviconDownloadHelper;
|
| class FaviconHandler;
|
| class Profile;
|
| class SkBitmap;
|
| @@ -34,7 +33,7 @@ class SkBitmap;
|
| //
|
| class FaviconTabHelper : public content::WebContentsObserver,
|
| public FaviconHandlerDelegate,
|
| - public FaviconDownloadHelperDelegate,
|
| + public content::FaviconDownloadDelegate,
|
| public content::WebContentsUserData<FaviconTabHelper> {
|
| public:
|
| virtual ~FaviconTabHelper();
|
| @@ -55,11 +54,11 @@ class FaviconTabHelper : public content::WebContentsObserver,
|
| // space is provided for the favicon, and the favicon is never displayed.
|
| virtual bool ShouldDisplayFavicon();
|
|
|
| - // Message Handler. Must be public, because also called from
|
| - // PrerenderContents.
|
| - virtual void OnUpdateFaviconURL(
|
| + // content::FaviconDownloadDelegate override. Must be public, because also
|
| + // called from PrerenderContents.
|
| + virtual void UpdateFaviconURL(
|
| int32 page_id,
|
| - const std::vector<FaviconURL>& candidates) OVERRIDE;
|
| + const std::vector<content::FaviconURL>& candidates) OVERRIDE;
|
|
|
| // Saves the favicon for the current page.
|
| void SaveFavicon();
|
| @@ -81,8 +80,8 @@ class FaviconTabHelper : public content::WebContentsObserver,
|
| const content::LoadCommittedDetails& details,
|
| const content::FrameNavigateParams& params) OVERRIDE;
|
|
|
| - // FaviconDownloadHelperDelegate overrides.
|
| - virtual void OnDidDownloadFavicon(
|
| + // content::FaviconDownloadDelegate override.
|
| + virtual void DidDownloadFavicon(
|
| int id,
|
| const GURL& image_url,
|
| bool errored,
|
| @@ -91,8 +90,6 @@ class FaviconTabHelper : public content::WebContentsObserver,
|
|
|
| Profile* profile_;
|
|
|
| - scoped_ptr<FaviconDownloadHelper> favicon_download_helper_;
|
| -
|
| scoped_ptr<FaviconHandler> favicon_handler_;
|
|
|
| // Handles downloading touchicons. It is NULL if
|
|
|