#include "components/segmentation_platform/internal/database/ukm_url_table.h"
#include <utility>
#include "base/containers/span.h"
#include "base/hash/md5.h"
#include "base/logging.h"
#include "base/numerics/byte_conversions.h"
#include "components/database_utils/url_converter.h"
#include "sql/database.h"
#include "sql/statement.h"
namespace segmentation_platform {
UkmUrlTable::UkmUrlTable(sql::Database* db) : … { … }
UkmUrlTable::~UkmUrlTable() = default;
std::string UkmUrlTable::GetDatabaseUrlString(const GURL& url) { … }
UrlId UkmUrlTable::GenerateUrlId(const GURL& url) { … }
bool UkmUrlTable::InitTable() { … }
bool UkmUrlTable::IsUrlInTable(UrlId url_id) { … }
bool UkmUrlTable::WriteUrl(const GURL& url,
UrlId url_id,
base::Time timestamp,
const std::string& profile_id) { … }
bool UkmUrlTable::UpdateUrlTimestamp(UrlId url_id, base::Time timestamp) { … }
bool UkmUrlTable::RemoveUrls(const std::vector<UrlId>& urls) { … }
bool UkmUrlTable::DeleteUrlsBeforeTimestamp(base::Time time) { … }
}