#ifndef CHROME_BROWSER_HISTORY_ANDROID_FAVICON_SQL_HANDLER_H_
#define CHROME_BROWSER_HISTORY_ANDROID_FAVICON_SQL_HANDLER_H_
#include "chrome/browser/history/android/sql_handler.h"
namespace history {
class ThumbnailDatabase;
class FaviconSQLHandler : public SQLHandler {
public:
explicit FaviconSQLHandler(ThumbnailDatabase* thumbnail_db);
virtual ~FaviconSQLHandler();
virtual bool Update(const HistoryAndBookmarkRow& row,
const TableIDRows& ids_set) OVERRIDE;
virtual bool Delete(const TableIDRows& ids_set) OVERRIDE;
virtual bool Insert(HistoryAndBookmarkRow* row) OVERRIDE;
private:
bool DeleteUnusedFavicon(const std::vector<chrome::FaviconID>& ids);
ThumbnailDatabase* thumbnail_db_;
DISALLOW_COPY_AND_ASSIGN(FaviconSQLHandler);
};
}
#endif