#ifndef CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_
#define CHROME_BROWSER_THUMBNAILS_THUMBNAIL_SERVICE_IMPL_H_
#include "base/memory/ref_counted.h"
#include "chrome/browser/history/top_sites.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/thumbnails/thumbnail_service.h"
namespace base {
class RefCountedMemory;
}
namespace thumbnails {
class ThumbnailServiceImpl : public ThumbnailService {
public:
explicit ThumbnailServiceImpl(Profile* profile);
virtual bool SetPageThumbnail(const ThumbnailingContext& context,
const gfx::Image& thumbnail) OVERRIDE;
virtual ThumbnailingAlgorithm* GetThumbnailingAlgorithm() const OVERRIDE;
virtual bool GetPageThumbnail(
const GURL& url,
bool prefix_match,
scoped_refptr<base::RefCountedMemory>* bytes) OVERRIDE;
virtual void AddForcedURL(const GURL& url) OVERRIDE;
virtual bool ShouldAcquirePageThumbnail(const GURL& url) OVERRIDE;
virtual void ShutdownOnUIThread() OVERRIDE;
private:
virtual ~ThumbnailServiceImpl();
scoped_refptr<history::TopSites> top_sites_;
bool use_thumbnail_retargeting_;
DISALLOW_COPY_AND_ASSIGN(ThumbnailServiceImpl);
};
}
#endif