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

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

Issue 12543034: Move creation of the various WebDatabaseTable types out of WebDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Windows release builds (COMDAT folding combined static functions being used for keys. Created 7 years, 9 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 | « chrome/browser/webdata/autofill_table_unittest.cc ('k') | chrome/browser/webdata/keyword_table.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/keyword_table.h
diff --git a/chrome/browser/webdata/keyword_table.h b/chrome/browser/webdata/keyword_table.h
index 4e3eb9c731d6776a9a0d2d40d9c89961a759784b..5cee19771c9e1ab950741ce3c7b50fb368a73e64 100644
--- a/chrome/browser/webdata/keyword_table.h
+++ b/chrome/browser/webdata/keyword_table.h
@@ -15,6 +15,7 @@
#include "chrome/browser/search_engines/template_url_id.h"
struct TemplateURLData;
+class WebDatabase;
namespace sql {
class Statement;
@@ -71,9 +72,14 @@ class KeywordTable : public WebDatabaseTable {
static const char kDefaultSearchProviderKey[];
- KeywordTable(sql::Connection* db, sql::MetaTable* meta_table);
+ KeywordTable();
virtual ~KeywordTable();
- virtual bool Init() OVERRIDE;
+
+ // Retrieves the KeywordTable* owned by |database|.
+ static KeywordTable* FromWebDatabase(WebDatabase* db);
+
+ virtual WebDatabaseTable::TypeKey GetTypeKey() const OVERRIDE;
+ virtual bool Init(sql::Connection* db, sql::MetaTable* meta_table) OVERRIDE;
virtual bool IsSyncable() OVERRIDE;
virtual bool MigrateToVersion(int version,
const std::string& app_locale,
« no previous file with comments | « chrome/browser/webdata/autofill_table_unittest.cc ('k') | chrome/browser/webdata/keyword_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698