Home
last modified time | relevance | path

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

/external/chromium_org/chrome/browser/history/
Dhistory_database.cc84 if (!meta_table_.Init(&db_, GetCurrentVersion(), kCompatibleVersionNumber)) in Init()
94 meta_table_.DeleteKey("next_download_id"); in Init()
269 if (!meta_table_.GetValue(kEarlyExpirationThresholdKey, &threshold)) { in GetEarlyExpirationThreshold()
280 meta_table_.SetValue(kEarlyExpirationThresholdKey, in UpdateEarlyExpirationThreshold()
293 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureCurrentVersion()
298 int cur_version = meta_table_.GetVersionNumber(); in EnsureCurrentVersion()
308 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
309 meta_table_.SetCompatibleVersionNumber( in EnsureCurrentVersion()
324 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
331 meta_table_.SetVersionNumber(cur_version); in EnsureCurrentVersion()
[all …]
Dthumbnail_database.cc609 meta_table_.Reset(); in Init()
1194 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in InitImpl()
1203 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in InitImpl()
1208 int cur_version = meta_table_.GetVersionNumber(); in InitImpl()
1290 meta_table_.SetVersionNumber(6); in UpgradeToVersion6()
1291 meta_table_.SetCompatibleVersionNumber(std::min(6, kCompatibleVersionNumber)); in UpgradeToVersion6()
1313 meta_table_.SetVersionNumber(7); in UpgradeToVersion7()
1314 meta_table_.SetCompatibleVersionNumber(std::min(7, kCompatibleVersionNumber)); in UpgradeToVersion7()
Dtop_sites_database.cc374 meta_table_.Reset(); in Init()
406 if (!meta_table_.Init(db_.get(), kVersionNumber, kVersionNumber)) in InitImpl()
412 if (meta_table_.GetVersionNumber() == 2) { in InitImpl()
420 if (meta_table_.GetVersionNumber() != kVersionNumber) in InitImpl()
437 meta_table_.SetVersionNumber(3); in UpgradeToVersion3()
Dtop_sites_database.h103 sql::MetaTable meta_table_; variable
Dhistory_database.h187 sql::MetaTable meta_table_; variable
Dshortcuts_database.h130 sql::MetaTable meta_table_; variable
Dthumbnail_database.h271 sql::MetaTable meta_table_; variable
Dshortcuts_database.cc259 meta_table_.Init(&db_, kCurrentVersionNumber, kCompatibleVersionNumber); in EnsureTable()
/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()
105 it->second->Init(&db_, &meta_table_); in Init()
133 int current_version = std::max(meta_table_.GetVersionNumber(), in MigrateOldVersionsAsNeeded()
134 meta_table_.GetCompatibleVersionNumber()); in MigrateOldVersionsAsNeeded()
135 if (current_version > meta_table_.GetVersionNumber()) in MigrateOldVersionsAsNeeded()
136 ChangeVersion(&meta_table_, current_version, false); in MigrateOldVersionsAsNeeded()
164 ChangeVersion(&meta_table_, next_version, update_compatible_version); in MigrateOldVersionsAsNeeded()
175 ChangeVersion(&meta_table_, next_version, update_compatible_version); in MigrateOldVersionsAsNeeded()
Dweb_database_table.cc7 WebDatabaseTable::WebDatabaseTable() : db_(NULL), meta_table_(NULL) {} in WebDatabaseTable()
12 meta_table_ = meta_table; in Init()
Dweb_database_table.h61 sql::MetaTable* meta_table_; variable
Dweb_database.h75 sql::MetaTable meta_table_; variable
/external/chromium_org/storage/browser/quota/
Dquota_database.cc138 meta_table_.reset(); in CloseConnection()
318 return meta_table_->GetValue(key, value); in GetQuotaConfigValue()
325 return meta_table_->SetValue(key, value); in SetQuotaConfigValue()
384 return meta_table_->GetValue(kIsOriginTableBootstrapped, &flag) && flag; in IsOriginDatabaseBootstrapped()
391 return meta_table_->SetValue(kIsOriginTableBootstrapped, bootstrap_flag); in SetOriginDatabaseBootstrapped()
449 meta_table_.reset(new sql::MetaTable); in LazyOpen()
468 meta_table_.reset(); in LazyOpen()
482 return CreateSchema(db_.get(), meta_table_.get(), in EnsureDatabaseVersion()
487 if (!meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion)) in EnsureDatabaseVersion()
490 if (meta_table_->GetCompatibleVersionNumber() > kCurrentVersion) { in EnsureDatabaseVersion()
[all …]
Dquota_database.h173 scoped_ptr<sql::MetaTable> meta_table_; variable
/external/chromium_org/content/browser/net/
Dsqlite_persistent_cookie_store.cc218 sql::MetaTable meta_table_; member in content::SQLitePersistentCookieStore::Backend
585 meta_table_.Reset(); in InitializeDatabase()
594 meta_table_.Reset(); in InitializeDatabase()
614 meta_table_.Reset(); in InitializeDatabase()
712 meta_table_.Reset(); in LoadCookiesForDomains()
761 if (!meta_table_.Init( in EnsureDatabaseVersion()
766 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureDatabaseVersion()
771 int cur_version = meta_table_.GetVersionNumber(); in EnsureDatabaseVersion()
783 meta_table_.SetVersionNumber(cur_version); in EnsureDatabaseVersion()
784 meta_table_.SetCompatibleVersionNumber( in EnsureDatabaseVersion()
[all …]
Dsqlite_persistent_cookie_store_unittest.cc216 sql::MetaTable meta_table_; in TEST_F() local
217 meta_table_.Init(&db, 1, 1); in TEST_F()
/external/chromium_org/net/extras/sqlite/
Dsqlite_channel_id_store.cc143 sql::MetaTable meta_table_; member in net::SQLiteChannelIDStore::Backend
215 meta_table_.Reset(); in LoadInBackground()
229 meta_table_.Reset(); in LoadInBackground()
266 if (!meta_table_.Init( in EnsureDatabaseVersion()
271 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in EnsureDatabaseVersion()
276 int cur_version = meta_table_.GetVersionNumber(); in EnsureDatabaseVersion()
296 meta_table_.SetVersionNumber(cur_version); in EnsureDatabaseVersion()
297 meta_table_.SetCompatibleVersionNumber( in EnsureDatabaseVersion()
376 meta_table_.SetVersionNumber(cur_version); in EnsureDatabaseVersion()
377 meta_table_.SetCompatibleVersionNumber( in EnsureDatabaseVersion()
[all …]
/external/chromium_org/components/search_engines/
Dkeyword_table.cc292 return meta_table_->SetValue(kDefaultSearchProviderKey, id); in SetDefaultSearchProviderID()
297 meta_table_->GetValue(kDefaultSearchProviderKey, &value); in GetDefaultSearchProviderID()
302 return meta_table_->SetValue(kBuiltinKeywordVersion, version); in SetBuiltinKeywordVersion()
307 return meta_table_->GetValue(kBuiltinKeywordVersion, &version) ? version : 0; in GetBuiltinKeywordVersion()
382 meta_table_->SetValue("Default Search Provider ID Backup", in MigrateToVersion44AddDefaultSearchProviderBackup()
398 meta_table_->DeleteKey("Default Search Provider Backup"); in MigrateToVersion45RemoveLogoIDAndAutogenerateColumns()
402 meta_table_->SetValue("Default Search Provider ID Backup Signature", in MigrateToVersion45RemoveLogoIDAndAutogenerateColumns()
414 meta_table_->SetValue("Default Search Provider ID Backup Signature", in MigrateToVersion47AddAlternateURLsColumn()
422 meta_table_->DeleteKey("Default Search Provider ID Backup") && in MigrateToVersion48RemoveKeywordsBackup()
423 meta_table_->DeleteKey("Default Search Provider ID Backup Signature") && in MigrateToVersion48RemoveKeywordsBackup()
/external/chromium_org/components/password_manager/core/browser/
Dlogin_database.cc144 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in Init()
149 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in Init()
181 switch (meta_table_.GetVersionNumber()) { in MigrateOldVersionsAsNeeded()
189 meta_table_.SetVersionNumber(2); in MigrateOldVersionsAsNeeded()
195 meta_table_.SetVersionNumber(3); in MigrateOldVersionsAsNeeded()
204 meta_table_.SetVersionNumber(4); in MigrateOldVersionsAsNeeded()
211 meta_table_.SetVersionNumber(5); in MigrateOldVersionsAsNeeded()
217 meta_table_.SetVersionNumber(6); in MigrateOldVersionsAsNeeded()
227 meta_table_.SetVersionNumber(7); in MigrateOldVersionsAsNeeded()
765 meta_table_.Reset(); in DeleteAndRecreateDatabaseFile()
Dlogin_database.h148 sql::MetaTable meta_table_; variable
/external/chromium_org/content/browser/appcache/
Dappcache_database.cc1008 meta_table_.reset(new sql::MetaTable); in LazyOpen()
1050 if (!meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion)) in EnsureDatabaseVersion()
1053 if (meta_table_->GetCompatibleVersionNumber() > kCurrentVersion) { in EnsureDatabaseVersion()
1059 meta_table_->GetValue(kExperimentFlagsKey, &stored_flags); in EnsureDatabaseVersion()
1063 if (meta_table_->GetVersionNumber() < kCurrentVersion) in EnsureDatabaseVersion()
1084 if (!meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion)) in CreateSchema()
1087 if (!meta_table_->SetValue(kExperimentFlagsKey, in CreateSchema()
1109 if (meta_table_->GetVersionNumber() == 3) { in UpgradeSchema()
1155 meta_table_->SetVersionNumber(4); in UpgradeSchema()
1156 meta_table_->SetCompatibleVersionNumber(4); in UpgradeSchema()
[all …]
Dappcache_database_unittest.cc162 EXPECT_TRUE(db.meta_table_->SetValue(kExperimentFlagsKey, kInjectedFlags)); in TEST()
164 EXPECT_TRUE(db.meta_table_->GetValue(kExperimentFlagsKey, &flags)); in TEST()
174 EXPECT_TRUE(db.meta_table_->GetValue(kExperimentFlagsKey, &flags)); in TEST()
942 EXPECT_EQ(5, db.meta_table_->GetVersionNumber()); in TEST()
943 EXPECT_EQ(5, db.meta_table_->GetCompatibleVersionNumber()); in TEST()
1176 EXPECT_EQ(5, db.meta_table_->GetVersionNumber()); in TEST()
1177 EXPECT_EQ(5, db.meta_table_->GetCompatibleVersionNumber()); in TEST()
Dappcache_database.h222 scoped_ptr<sql::MetaTable> meta_table_; variable
/external/chromium_org/storage/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()
Ddatabase_tracker.h283 scoped_ptr<sql::MetaTable> meta_table_; variable