#ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_
#define CHROME_BROWSER_UI_ASH_LAUNCHER_LAUNCHER_FAVICON_LOADER_H_
#include <vector>
#include "base/basictypes.h"
#include "base/callback.h"
#include "content/public/common/favicon_url.h"
class GURL;
class SkBitmap;
namespace internal {
class FaviconBitmapHandler;
}
namespace content {
class WebContents;
}
class LauncherFaviconLoader {
public:
class Delegate {
public:
virtual void FaviconUpdated() = 0;
protected:
virtual ~Delegate() {}
};
LauncherFaviconLoader(Delegate* delegate,
content::WebContents* web_contents);
virtual ~LauncherFaviconLoader();
content::WebContents* web_contents() {
return web_contents_;
}
SkBitmap GetFavicon() const;
bool HasPendingDownloads() const;
private:
content::WebContents* web_contents_;
scoped_ptr<internal::FaviconBitmapHandler> favicon_handler_;
DISALLOW_COPY_AND_ASSIGN(LauncherFaviconLoader);
};
#endif