#ifndef CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_
#define CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_
#include <vector>
#include "base/compiler_specific.h"
#include "components/webdata/common/web_database_table.h"
class GURL;
class SkBitmap;
class WebDatabase;
class WebAppsTable : public WebDatabaseTable {
public:
WebAppsTable() {}
virtual ~WebAppsTable() {}
static WebAppsTable* FromWebDatabase(WebDatabase* database);
virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE;
virtual bool CreateTablesIfNecessary() OVERRIDE;
virtual bool IsSyncable() OVERRIDE;
virtual bool MigrateToVersion(int version,
bool* update_compatible_version) OVERRIDE;
bool SetWebAppImage(const GURL& url, const SkBitmap& image);
bool GetWebAppImages(const GURL& url, std::vector<SkBitmap>* images);
bool SetWebAppHasAllImages(const GURL& url, bool has_all_images);
bool GetWebAppHasAllImages(const GURL& url);
bool RemoveWebApp(const GURL& url);
private:
bool InitWebAppIconsTable();
bool InitWebAppsTable();
DISALLOW_COPY_AND_ASSIGN(WebAppsTable);
};
#endif