#include "storage/browser/quota/quota_database_migrations.h"
#include <string>
#include "base/metrics/histogram_functions.h"
#include "base/sequence_checker.h"
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "components/services/storage/public/cpp/buckets/bucket_id.h"
#include "components/services/storage/public/cpp/buckets/constants.h"
#include "sql/database.h"
#include "sql/meta_table.h"
#include "sql/statement.h"
#include "sql/transaction.h"
#include "storage/browser/quota/quota_database.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
#include "third_party/blink/public/mojom/buckets/bucket_manager_host.mojom.h"
namespace storage {
namespace {
constexpr char kDefaultNamePreV10[] = …;
bool OverwriteBucketsTableSetUpIndexes(sql::Database* db) { … }
}
bool QuotaDatabaseMigrations::UpgradeSchema(QuotaDatabase& quota_database) { … }
void QuotaDatabaseMigrations::RecordMigrationHistogram(int old_version,
int new_version,
bool success) { … }
bool QuotaDatabaseMigrations::MigrateFromVersion7ToVersion8(
QuotaDatabase& quota_database) { … }
bool QuotaDatabaseMigrations::MigrateFromVersion8ToVersion9(
QuotaDatabase& quota_database) { … }
bool QuotaDatabaseMigrations::MigrateFromVersion9ToVersion10(
QuotaDatabase& quota_database) { … }
}