#include "components/webdata/common/web_database.h"
#include <algorithm>
#include "base/feature_list.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/stringprintf.h"
#include "sql/transaction.h"
const base::FilePath::CharType WebDatabase::kInMemoryPath[] = …);
namespace {
BASE_FEATURE(…);
enum class WebDatabaseInitResult { … };
void LogInitResult(WebDatabaseInitResult result) { … }
constexpr int kCompatibleVersionNumber = …;
[[nodiscard]] bool ChangeVersion(sql::MetaTable* meta_table,
int version_num,
bool update_compatible_version_num) { … }
sql::InitStatus FailedMigrationTo(int version_num) { … }
}
WebDatabase::WebDatabase()
: … { … }
WebDatabase::~WebDatabase() { … }
void WebDatabase::AddTable(WebDatabaseTable* table) { … }
WebDatabaseTable* WebDatabase::GetTable(WebDatabaseTable::TypeKey key) { … }
void WebDatabase::BeginTransaction() { … }
void WebDatabase::CommitTransaction() { … }
std::string WebDatabase::GetDiagnosticInfo(int extended_error,
sql::Statement* statement) { … }
sql::Database* WebDatabase::GetSQLConnection() { … }
sql::InitStatus WebDatabase::Init(const base::FilePath& db_name) { … }
sql::InitStatus WebDatabase::MigrateOldVersionsAsNeeded() { … }
bool WebDatabase::MigrateToVersion(int version,
bool* update_compatible_version) { … }
bool WebDatabase::MigrateToVersion58DropWebAppsAndIntents() { … }
bool WebDatabase::MigrateToVersion79DropLoginsTable() { … }
bool WebDatabase::MigrateToVersion105DropIbansTable() { … }