#include "components/payments/content/web_app_manifest_section_table.h"
#include <stdint.h>
#include <time.h>
#include <memory>
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/time/time.h"
#include "components/webdata/common/web_database.h"
#include "sql/statement.h"
#include "sql/transaction.h"
namespace payments {
namespace {
const time_t WEB_APP_MANIFEST_VALID_TIME_IN_SECONDS = …;
const size_t kFingerPrintLength = …;
WebDatabaseTable::TypeKey GetWebAppManifestKey() { … }
std::unique_ptr<std::vector<uint8_t>> SerializeFingerPrints(
const std::vector<std::vector<uint8_t>>& fingerprints) { … }
bool DeserializeFingerPrints(
const std::vector<uint8_t>& fingerprints,
std::vector<std::vector<uint8_t>>& deserialized_fingerprints) { … }
}
WebAppManifestSectionTable::WebAppManifestSectionTable() { … }
WebAppManifestSectionTable::~WebAppManifestSectionTable() { … }
WebAppManifestSectionTable* WebAppManifestSectionTable::FromWebDatabase(
WebDatabase* db) { … }
WebDatabaseTable::TypeKey WebAppManifestSectionTable::GetTypeKey() const { … }
bool WebAppManifestSectionTable::CreateTablesIfNecessary() { … }
bool WebAppManifestSectionTable::MigrateToVersion(
int version,
bool* update_compatible_version) { … }
void WebAppManifestSectionTable::RemoveExpiredData() { … }
bool WebAppManifestSectionTable::AddWebAppManifest(
const std::vector<WebAppManifestSection>& manifest) { … }
std::vector<WebAppManifestSection>
WebAppManifestSectionTable::GetWebAppManifest(const std::string& web_app) { … }
}