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

Side by Side Diff: chrome/browser/webdata/web_apps_table.h

Issue 13191007: Pass app_locale directly to AutofillTable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Chrome frame tests fix Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_ 5 #ifndef CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_
6 #define CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_ 6 #define CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 23 matching lines...) Expand all
34 WebAppsTable() {} 34 WebAppsTable() {}
35 virtual ~WebAppsTable() {} 35 virtual ~WebAppsTable() {}
36 36
37 // Retrieves the WebAppsTable* owned by |database|. 37 // Retrieves the WebAppsTable* owned by |database|.
38 static WebAppsTable* FromWebDatabase(WebDatabase* database); 38 static WebAppsTable* FromWebDatabase(WebDatabase* database);
39 39
40 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE; 40 virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE;
41 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE; 41 virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE;
42 virtual bool IsSyncable() OVERRIDE; 42 virtual bool IsSyncable() OVERRIDE;
43 virtual bool MigrateToVersion(int version, 43 virtual bool MigrateToVersion(int version,
44 const std::string& app_locale,
45 bool* update_compatible_version) OVERRIDE; 44 bool* update_compatible_version) OVERRIDE;
46 45
47 bool SetWebAppImage(const GURL& url, const SkBitmap& image); 46 bool SetWebAppImage(const GURL& url, const SkBitmap& image);
48 47
49 // Returns true if all images are retrieved. Returns false if there is a 48 // Returns true if all images are retrieved. Returns false if there is a
50 // database error. In this case, the state of images is undefined; it may have 49 // database error. In this case, the state of images is undefined; it may have
51 // partial results or no results from the call. 50 // partial results or no results from the call.
52 bool GetWebAppImages(const GURL& url, std::vector<SkBitmap>* images); 51 bool GetWebAppImages(const GURL& url, std::vector<SkBitmap>* images);
53 52
54 bool SetWebAppHasAllImages(const GURL& url, bool has_all_images); 53 bool SetWebAppHasAllImages(const GURL& url, bool has_all_images);
55 bool GetWebAppHasAllImages(const GURL& url); 54 bool GetWebAppHasAllImages(const GURL& url);
56 55
57 bool RemoveWebApp(const GURL& url); 56 bool RemoveWebApp(const GURL& url);
58 57
59 private: 58 private:
60 bool InitWebAppIconsTable(); 59 bool InitWebAppIconsTable();
61 bool InitWebAppsTable(); 60 bool InitWebAppsTable();
62 61
63 DISALLOW_COPY_AND_ASSIGN(WebAppsTable); 62 DISALLOW_COPY_AND_ASSIGN(WebAppsTable);
64 }; 63 };
65 64
66 #endif // CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_ 65 #endif // CHROME_BROWSER_WEBDATA_WEB_APPS_TABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/webdata/token_service_table_unittest.cc ('k') | chrome/browser/webdata/web_apps_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698