Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(8640)

Unified Diff: chrome/browser/webdata/web_apps_table.h

Issue 382703002: Remove unused SQLLite tables from WebData (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 2 Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/webdata/web_apps_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/web_apps_table.h
diff --git a/chrome/browser/webdata/web_apps_table.h b/chrome/browser/webdata/web_apps_table.h
deleted file mode 100644
index 82a19b24ea0e0dc5dcc474869b079ded70121723..0000000000000000000000000000000000000000
--- a/chrome/browser/webdata/web_apps_table.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#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;
-
-// This class manages the WebApps tables within the SQLite database passed to
-// the constructor. It expects the following schema:
-//
-// Note: The database stores time in seconds, UTC.
-//
-// web_apps
-// url URL of the web app.
-// has_all_images Do we have all the images?
-//
-// web_app_icons
-// url URL of the web app.
-// width Width of the image.
-// height Height of the image.
-// image PNG encoded image data.
-//
-class WebAppsTable : public WebDatabaseTable {
- public:
- WebAppsTable() {}
- virtual ~WebAppsTable() {}
-
- // Retrieves the WebAppsTable* owned by |database|.
- 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);
-
- // Returns true if all images are retrieved. Returns false if there is a
- // database error. In this case, the state of images is undefined; it may have
- // partial results or no results from the call.
- 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 // CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_
« no previous file with comments | « no previous file | chrome/browser/webdata/web_apps_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698