#include "components/user_annotations/user_annotations_database.h"
#include "base/files/file_path.h"
#include "base/metrics/histogram_functions.h"
#include "base/sequence_checker.h"
#include "build/build_config.h"
#include "components/user_annotations/user_annotations_features.h"
#include "sql/init_status.h"
#include "sql/meta_table.h"
#include "sql/statement.h"
#include "sql/transaction.h"
namespace user_annotations {
inline constexpr base::FilePath::CharType kUserAnnotationsName[] = …);
constexpr int kLowestSupportedDatabaseVersion = …;
constexpr int kCurrentDatabaseVersion = …;
namespace {
[[nodiscard]] bool CreateTable(sql::Database& db) { … }
}
UserAnnotationsDatabase::UserAnnotationsDatabase(
const base::FilePath& storage_dir) { … }
UserAnnotationsDatabase::~UserAnnotationsDatabase() = default;
sql::InitStatus UserAnnotationsDatabase::InitInternal(
const base::FilePath& storage_dir) { … }
bool UserAnnotationsDatabase::UpdateEntries(
const std::vector<optimization_guide::proto::UserAnnotationsEntry>&
entries) { … }
std::vector<optimization_guide::proto::UserAnnotationsEntry>
UserAnnotationsDatabase::RetrieveAllEntries() { … }
}