class InitDatabaseCommand : public Command {
public:
InitDatabaseCommand(FaviconDatabasePrivate *db);
- bool execute() { return sqlExecute(); }
- bool sqlExecute();
+ bool execute() override { return sqlExecute(); }
+ bool sqlExecute() override;
};
class LoadDatabaseCommand : public Command {
public:
LoadDatabaseCommand(FaviconDatabasePrivate *db);
- bool execute() { return sqlExecute(); }
- bool sqlExecute();
+ bool execute() override { return sqlExecute(); }
+ bool sqlExecute() override;
};
class ClearDatabaseCommand : public Command {
public:
ClearDatabaseCommand(FaviconDatabasePrivate *db);
- bool execute();
- bool sqlExecute();
+ bool execute() override;
+ bool sqlExecute() override;
};
class InsertFaviconURLCommand : public Command {
public:
InsertFaviconURLCommand(FaviconDatabasePrivate *db, const GURL &pageUrl, const GURL &faviconUrl);
- bool execute();
- bool sqlExecute();
+ bool execute() override;
+ bool sqlExecute() override;
private:
std::string m_pageUrl;
std::string m_faviconUrl;
class UpdateFaviconURLCommand : public Command {
public:
UpdateFaviconURLCommand(FaviconDatabasePrivate *db, const GURL &pageUrl, const GURL &faviconUrl);
- bool execute();
- bool sqlExecute();
+ bool execute() override;
+ bool sqlExecute() override;
private:
std::string m_pageUrl;
std::string m_faviconUrl;
class InsertBitmapCommand : public Command {
public:
InsertBitmapCommand(FaviconDatabasePrivate *db, const GURL &faviconUrl, const SkBitmap &bitmap);
- bool execute();
- bool sqlExecute();
+ bool execute() override;
+ bool sqlExecute() override;
private:
std::string m_faviconUrl;
SkBitmap m_bitmap;
class UpdateBitmapCommand : public Command {
public:
UpdateBitmapCommand(FaviconDatabasePrivate *db, const GURL &faviconUrl, const SkBitmap &bitmap);
- bool execute();
- bool sqlExecute();
+ bool execute() override;
+ bool sqlExecute() override;
private:
std::string m_faviconUrl;
SkBitmap m_bitmap;
class RemoveBitmapCommand : public Command {
public:
RemoveBitmapCommand(FaviconDatabasePrivate *db, const GURL &faviconUrl);
- bool execute();
- bool sqlExecute();
+ bool execute() override;
+ bool sqlExecute() override;
private:
std::string m_faviconUrl;
};