Home
last modified time | relevance | path

Searched refs:meta_table_ (Results 1 – 25 of 43) sorted by relevance

12

/external/chromium/chrome/browser/webdata/
Dweb_database.cc112 if (!meta_table_.Init(&db_, kCurrentVersionNumber, kCompatibleVersionNumber)) in Init()
114 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in Init()
120 autofill_table_.reset(new AutofillTable(&db_, &meta_table_)); in Init()
121 keyword_table_.reset(new KeywordTable(&db_, &meta_table_)); in Init()
122 logins_table_.reset(new LoginsTable(&db_, &meta_table_)); in Init()
123 token_service_table_.reset(new TokenServiceTable(&db_, &meta_table_)); in Init()
124 web_apps_table_.reset(new WebAppsTable(&db_, &meta_table_)); in Init()
146 int current_version = meta_table_.GetVersionNumber(); in MigrateOldVersionsAsNeeded()
166 ChangeVersion(&meta_table_, 21, true); in MigrateOldVersionsAsNeeded()
173 ChangeVersion(&meta_table_, 22, false); in MigrateOldVersionsAsNeeded()
[all …]
Dweb_database_table.h18 : db_(db), meta_table_(meta_table) {} in WebDatabaseTable()
21 meta_table_ = NULL; in ~WebDatabaseTable()
35 sql::MetaTable* meta_table_; variable
Dkeyword_table.cc211 return meta_table_->SetValue(kDefaultSearchProviderKey, id); in SetDefaultSearchProviderID()
216 meta_table_->GetValue(kDefaultSearchProviderKey, &value); in GetDefaulSearchProviderID()
221 return meta_table_->SetValue(kBuiltinKeywordVersion, version); in SetBuitinKeywordVersion()
226 meta_table_->GetValue(kBuiltinKeywordVersion, &version); in GetBuitinKeywordVersion()
/external/chromium_org/chrome/browser/history/
Dhistory_database.cc85 if (!meta_table_.Init(&db_, GetCurrentVersion(), kCompatibleVersionNumber)) in Init()
95 meta_table_.DeleteKey("next_download_id"); in Init()
273 if (!meta_table_.GetValue(kEarlyExpirationThresholdKey, &threshold)) { in GetEarlyExpirationThreshold()
284 meta_table_.SetValue(kEarlyExpirationThresholdKey, in UpdateEarlyExpirationThreshold()
297 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureCurrentVersion()
308 int cur_version = meta_table_.GetVersionNumber(); in EnsureCurrentVersion()
318 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
319 meta_table_.SetCompatibleVersionNumber( in EnsureCurrentVersion()
334 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
341 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
[all …]
Darchived_database.cc59 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in InitTables()
102 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureCurrentVersion()
113 int cur_version = meta_table_.GetVersionNumber(); in EnsureCurrentVersion()
120 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
121 meta_table_.SetCompatibleVersionNumber( in EnsureCurrentVersion()
128 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
139 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
Dtop_sites_database.cc370 meta_table_.Reset(); in Init()
402 if (!meta_table_.Init(db_.get(), kVersionNumber, kVersionNumber)) in InitImpl()
408 if (meta_table_.GetVersionNumber() == 2) { in InitImpl()
416 if (meta_table_.GetVersionNumber() != kVersionNumber) in InitImpl()
433 meta_table_.SetVersionNumber(3); in UpgradeToVersion3()
Dthumbnail_database.cc723 meta_table_.Reset(); in Init()
1307 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in InitImpl()
1316 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in InitImpl()
1321 int cur_version = meta_table_.GetVersionNumber(); in InitImpl()
1403 meta_table_.SetVersionNumber(6); in UpgradeToVersion6()
1404 meta_table_.SetCompatibleVersionNumber(std::min(6, kCompatibleVersionNumber)); in UpgradeToVersion6()
1426 meta_table_.SetVersionNumber(7); in UpgradeToVersion7()
1427 meta_table_.SetCompatibleVersionNumber(std::min(7, kCompatibleVersionNumber)); in UpgradeToVersion7()
Darchived_database.h67 sql::MetaTable meta_table_; variable
/external/chromium/chrome/browser/history/
Dhistory_database.cc114 if (!meta_table_.Init(&db_, GetCurrentVersion(), kCompatibleVersionNumber)) in Init()
181 meta_table_.SetValue(kNeedsThumbnailMigrationKey, 0); in ThumbnailMigrationDone()
186 return (meta_table_.GetValue(kNeedsThumbnailMigrationKey, &value) && in GetNeedsThumbnailMigration()
226 if (!meta_table_.GetValue(kEarlyExpirationThresholdKey, &threshold)) { in GetEarlyExpirationThreshold()
237 meta_table_.SetValue(kEarlyExpirationThresholdKey, in UpdateEarlyExpirationThreshold()
251 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureCurrentVersion()
262 int cur_version = meta_table_.GetVersionNumber(); in EnsureCurrentVersion()
273 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
274 meta_table_.SetCompatibleVersionNumber( in EnsureCurrentVersion()
289 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
[all …]
Darchived_database.cc52 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in Init()
91 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureCurrentVersion()
102 int cur_version = meta_table_.GetVersionNumber(); in EnsureCurrentVersion()
109 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
110 meta_table_.SetCompatibleVersionNumber( in EnsureCurrentVersion()
117 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
Dthumbnail_database.cc78 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in Init()
91 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in Init()
96 int cur_version = meta_table_.GetVersionNumber(); in Init()
156 meta_table_.SetVersionNumber(3); in UpgradeToVersion3()
157 meta_table_.SetCompatibleVersionNumber( in UpgradeToVersion3()
179 meta_table_.SetVersionNumber(3); in UpgradeToVersion3()
180 meta_table_.SetCompatibleVersionNumber(std::min(3, kCompatibleVersionNumber)); in UpgradeToVersion3()
756 meta_table_.SetVersionNumber(4); in UpgradeToVersion4()
757 meta_table_.SetCompatibleVersionNumber(std::min(4, kCompatibleVersionNumber)); in UpgradeToVersion4()
Darchived_database.h57 sql::MetaTable meta_table_; variable
/external/chromium_org/components/webdata/common/
Dweb_database.cc96 if (!meta_table_.Init(&db_, kCurrentVersionNumber, kCompatibleVersionNumber)) in Init()
98 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in Init()
107 if (!it->second->Init(&db_, &meta_table_)) { in Init()
127 int current_version = std::max(meta_table_.GetVersionNumber(), in MigrateOldVersionsAsNeeded()
128 meta_table_.GetCompatibleVersionNumber()); in MigrateOldVersionsAsNeeded()
129 if (current_version > meta_table_.GetVersionNumber()) in MigrateOldVersionsAsNeeded()
130 ChangeVersion(&meta_table_, current_version, false); in MigrateOldVersionsAsNeeded()
163 ChangeVersion(&meta_table_, next_version, update_compatible_version); in MigrateOldVersionsAsNeeded()
Dweb_database_table.cc7 WebDatabaseTable::WebDatabaseTable() : db_(NULL), meta_table_(NULL) { in WebDatabaseTable()
15 meta_table_ = meta_table; in Init()
Dweb_database_table.h60 sql::MetaTable* meta_table_; variable
Dweb_database.h63 sql::MetaTable meta_table_; variable
/external/chromium_org/webkit/browser/quota/
Dquota_database.cc137 meta_table_.reset(); in CloseConnection()
317 return meta_table_->GetValue(key, value); in GetQuotaConfigValue()
324 return meta_table_->SetValue(key, value); in SetQuotaConfigValue()
383 return meta_table_->GetValue(kIsOriginTableBootstrapped, &flag) && flag; in IsOriginDatabaseBootstrapped()
390 return meta_table_->SetValue(kIsOriginTableBootstrapped, bootstrap_flag); in SetOriginDatabaseBootstrapped()
448 meta_table_.reset(new sql::MetaTable); in LazyOpen()
467 meta_table_.reset(); in LazyOpen()
481 return CreateSchema(db_.get(), meta_table_.get(), in EnsureDatabaseVersion()
486 if (!meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion)) in EnsureDatabaseVersion()
489 if (meta_table_->GetCompatibleVersionNumber() > kCurrentVersion) { in EnsureDatabaseVersion()
[all …]
/external/chromium_org/content/browser/net/
Dsqlite_persistent_cookie_store.cc216 sql::MetaTable meta_table_; member in content::SQLitePersistentCookieStore::Backend
581 meta_table_.Reset(); in InitializeDatabase()
590 meta_table_.Reset(); in InitializeDatabase()
610 meta_table_.Reset(); in InitializeDatabase()
708 meta_table_.Reset(); in LoadCookiesForDomains()
757 if (!meta_table_.Init( in EnsureDatabaseVersion()
762 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureDatabaseVersion()
767 int cur_version = meta_table_.GetVersionNumber(); in EnsureDatabaseVersion()
779 meta_table_.SetVersionNumber(cur_version); in EnsureDatabaseVersion()
780 meta_table_.SetCompatibleVersionNumber( in EnsureDatabaseVersion()
[all …]
/external/chromium_org/chrome/browser/net/
Dsqlite_server_bound_cert_store.cc118 sql::MetaTable meta_table_; member in SQLiteServerBoundCertStore::Backend
223 meta_table_.Reset(); in LoadOnDBThread()
237 meta_table_.Reset(); in LoadOnDBThread()
274 if (!meta_table_.Init( in EnsureDatabaseVersion()
279 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureDatabaseVersion()
284 int cur_version = meta_table_.GetVersionNumber(); in EnsureDatabaseVersion()
303 meta_table_.SetVersionNumber(cur_version); in EnsureDatabaseVersion()
304 meta_table_.SetCompatibleVersionNumber( in EnsureDatabaseVersion()
382 meta_table_.SetVersionNumber(cur_version); in EnsureDatabaseVersion()
383 meta_table_.SetCompatibleVersionNumber( in EnsureDatabaseVersion()
[all …]
/external/chromium_org/chrome/browser/webdata/
Dkeyword_table.cc302 return meta_table_->SetValue(kDefaultSearchProviderKey, id); in SetDefaultSearchProviderID()
307 meta_table_->GetValue(kDefaultSearchProviderKey, &value); in GetDefaultSearchProviderID()
312 return meta_table_->SetValue(kBuiltinKeywordVersion, version); in SetBuiltinKeywordVersion()
317 return meta_table_->GetValue(kBuiltinKeywordVersion, &version) ? version : 0; in GetBuiltinKeywordVersion()
393 if (!meta_table_->SetValue("Default Search Provider ID Backup", in MigrateToVersion44AddDefaultSearchProviderBackup()
418 meta_table_->DeleteKey("Default Search Provider Backup"); in MigrateToVersion45RemoveLogoIDAndAutogenerateColumns()
425 !meta_table_->SetValue("Default Search Provider ID Backup Signature", in MigrateToVersion45RemoveLogoIDAndAutogenerateColumns()
446 !meta_table_->SetValue("Default Search Provider ID Backup Signature", in MigrateToVersion47AddAlternateURLsColumn()
458 if (!meta_table_->DeleteKey("Default Search Provider ID Backup") || in MigrateToVersion48RemoveKeywordsBackup()
459 !meta_table_->DeleteKey("Default Search Provider ID Backup Signature")) in MigrateToVersion48RemoveKeywordsBackup()
/external/chromium_org/webkit/browser/appcache/
Dappcache_database.cc1007 meta_table_.reset(new sql::MetaTable); in LazyOpen()
1046 if (!meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion)) in EnsureDatabaseVersion()
1049 if (meta_table_->GetCompatibleVersionNumber() > kCurrentVersion) { in EnsureDatabaseVersion()
1055 meta_table_->GetValue(kExperimentFlagsKey, &stored_flags); in EnsureDatabaseVersion()
1059 if (meta_table_->GetVersionNumber() < kCurrentVersion) in EnsureDatabaseVersion()
1080 if (!meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion)) in CreateSchema()
1083 if (!meta_table_->SetValue(kExperimentFlagsKey, in CreateSchema()
1105 if (meta_table_->GetVersionNumber() == 3) { in UpgradeSchema()
1150 meta_table_->SetVersionNumber(4); in UpgradeSchema()
1151 meta_table_->SetCompatibleVersionNumber(4); in UpgradeSchema()
[all …]
/external/chromium/chrome/browser/net/
Dsqlite_persistent_cookie_store.cc140 sql::MetaTable meta_table_; member in SQLitePersistentCookieStore::Backend
287 if (!meta_table_.Init( in EnsureDatabaseVersion()
292 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureDatabaseVersion()
297 int cur_version = meta_table_.GetVersionNumber(); in EnsureDatabaseVersion()
309 meta_table_.SetVersionNumber(cur_version); in EnsureDatabaseVersion()
310 meta_table_.SetCompatibleVersionNumber( in EnsureDatabaseVersion()
345 meta_table_.SetVersionNumber(cur_version); in EnsureDatabaseVersion()
/external/chromium_org/chrome/browser/password_manager/
Dlogin_database.cc73 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in Init()
78 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in Init()
110 switch (meta_table_.GetVersionNumber()) { in MigrateOldVersionsAsNeeded()
118 meta_table_.SetVersionNumber(2); in MigrateOldVersionsAsNeeded()
124 meta_table_.SetVersionNumber(3); in MigrateOldVersionsAsNeeded()
133 meta_table_.SetVersionNumber(4); in MigrateOldVersionsAsNeeded()
550 meta_table_.Reset(); in DeleteAndRecreateDatabaseFile()
/external/chromium/chrome/browser/password_manager/
Dlogin_database.cc66 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in Init()
71 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in Init()
98 switch (meta_table_.GetVersionNumber()) { in MigrateOldVersionsAsNeeded()
403 meta_table_.Reset(); in DeleteAndRecreateDatabaseFile()
/external/chromium_org/webkit/browser/database/
Ddatabase_tracker.cc262 meta_table_.reset(NULL); in CloseTrackerDatabaseAndClearCaches()
448 DCHECK(!meta_table_.get()); in LazyInit()
480 meta_table_.reset(new sql::MetaTable()); in LazyInit()
490 meta_table_.reset(NULL); in LazyInit()
500 !meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion) || in UpgradeToCurrentVersion()
501 (meta_table_->GetCompatibleVersionNumber() > kCurrentVersion) || in UpgradeToCurrentVersion()
505 if (meta_table_->GetVersionNumber() < kCurrentVersion) in UpgradeToCurrentVersion()
506 meta_table_->SetVersionNumber(kCurrentVersion); in UpgradeToCurrentVersion()

12