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.cc612 meta_table_.Reset(); in Init()
1197 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in InitImpl()
1206 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in InitImpl()
1211 int cur_version = meta_table_.GetVersionNumber(); in InitImpl()
1293 meta_table_.SetVersionNumber(6); in UpgradeToVersion6()
1294 meta_table_.SetCompatibleVersionNumber(std::min(6, kCompatibleVersionNumber)); in UpgradeToVersion6()
1316 meta_table_.SetVersionNumber(7); in UpgradeToVersion7()
1317 meta_table_.SetCompatibleVersionNumber(std::min(7, kCompatibleVersionNumber)); in UpgradeToVersion7()
Dtop_sites_database.cc371 meta_table_.Reset(); in Init()
403 if (!meta_table_.Init(db_.get(), kVersionNumber, kVersionNumber)) in InitImpl()
409 if (meta_table_.GetVersionNumber() == 2) { in InitImpl()
417 if (meta_table_.GetVersionNumber() != kVersionNumber) in InitImpl()
434 meta_table_.SetVersionNumber(3); in UpgradeToVersion3()
Dtop_sites_database.h104 sql::MetaTable meta_table_; variable
Dhistory_database.h188 sql::MetaTable meta_table_; variable
Dshortcuts_database.h130 sql::MetaTable meta_table_; variable
Dthumbnail_database.h269 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()
167 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.h63 sql::MetaTable meta_table_; variable
/external/chromium_org/webkit/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/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.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.cc134 if (!meta_table_.Init(&db_, kCurrentVersionNumber, in Init()
139 if (meta_table_.GetCompatibleVersionNumber() > kCurrentVersionNumber) { in Init()
171 switch (meta_table_.GetVersionNumber()) { in MigrateOldVersionsAsNeeded()
179 meta_table_.SetVersionNumber(2); in MigrateOldVersionsAsNeeded()
185 meta_table_.SetVersionNumber(3); in MigrateOldVersionsAsNeeded()
194 meta_table_.SetVersionNumber(4); in MigrateOldVersionsAsNeeded()
201 meta_table_.SetVersionNumber(5); in MigrateOldVersionsAsNeeded()
208 meta_table_.SetVersionNumber(6); in MigrateOldVersionsAsNeeded()
692 meta_table_.Reset(); in DeleteAndRecreateDatabaseFile()
Dlogin_database.h147 sql::MetaTable meta_table_; variable
/external/chromium_org/webkit/browser/appcache/
Dappcache_database.cc1006 meta_table_.reset(new sql::MetaTable); in LazyOpen()
1048 if (!meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion)) in EnsureDatabaseVersion()
1051 if (meta_table_->GetCompatibleVersionNumber() > kCurrentVersion) { in EnsureDatabaseVersion()
1057 meta_table_->GetValue(kExperimentFlagsKey, &stored_flags); in EnsureDatabaseVersion()
1061 if (meta_table_->GetVersionNumber() < kCurrentVersion) in EnsureDatabaseVersion()
1082 if (!meta_table_->Init(db_.get(), kCurrentVersion, kCompatibleVersion)) in CreateSchema()
1085 if (!meta_table_->SetValue(kExperimentFlagsKey, in CreateSchema()
1107 if (meta_table_->GetVersionNumber() == 3) { in UpgradeSchema()
1153 meta_table_->SetVersionNumber(4); in UpgradeSchema()
1154 meta_table_->SetCompatibleVersionNumber(4); in UpgradeSchema()
[all …]
Dappcache_database.h225 scoped_ptr<sql::MetaTable> meta_table_; variable
/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()
Ddatabase_tracker.h283 scoped_ptr<sql::MetaTable> meta_table_; variable
/external/chromium_org/content/browser/appcache/
Dappcache_database_unittest.cc168 EXPECT_TRUE(db.meta_table_->SetValue(kExperimentFlagsKey, kInjectedFlags)); in TEST()
170 EXPECT_TRUE(db.meta_table_->GetValue(kExperimentFlagsKey, &flags)); in TEST()
180 EXPECT_TRUE(db.meta_table_->GetValue(kExperimentFlagsKey, &flags)); in TEST()
948 EXPECT_EQ(5, db.meta_table_->GetVersionNumber()); in TEST()
949 EXPECT_EQ(5, db.meta_table_->GetCompatibleVersionNumber()); in TEST()
1182 EXPECT_EQ(5, db.meta_table_->GetVersionNumber()); in TEST()
1183 EXPECT_EQ(5, db.meta_table_->GetCompatibleVersionNumber()); in TEST()