#include "components/payments/content/payment_manifest_web_data_service.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/task/sequenced_task_runner.h"
#include "components/payments/content/payment_method_manifest_table.h"
#include "components/payments/content/web_app_manifest_section_table.h"
#include "components/payments/core/secure_payment_confirmation_credential.h"
#include "components/webdata/common/web_data_results.h"
#include "components/webdata/common/web_database_service.h"
namespace payments {
PaymentManifestWebDataService::PaymentManifestWebDataService(
scoped_refptr<WebDatabaseService> wdbs,
scoped_refptr<base::SequencedTaskRunner> ui_task_runner)
: … { … }
PaymentManifestWebDataService::~PaymentManifestWebDataService() { … }
void PaymentManifestWebDataService::AddPaymentWebAppManifest(
std::vector<WebAppManifestSection> manifest) { … }
WebDatabase::State PaymentManifestWebDataService::AddPaymentWebAppManifestImpl(
const std::vector<WebAppManifestSection>& manifest,
WebDatabase* db) { … }
void PaymentManifestWebDataService::AddPaymentMethodManifest(
const std::string& payment_method,
std::vector<std::string> app_package_names) { … }
WebDatabase::State PaymentManifestWebDataService::AddPaymentMethodManifestImpl(
const std::string& payment_method,
const std::vector<std::string>& app_package_names,
WebDatabase* db) { … }
WebDataServiceBase::Handle
PaymentManifestWebDataService::GetPaymentWebAppManifest(
const std::string& web_app,
WebDataServiceConsumer* consumer) { … }
std::unique_ptr<WDTypedResult>
PaymentManifestWebDataService::GetPaymentWebAppManifestImpl(
const std::string& web_app,
WebDatabase* db) { … }
WebDataServiceBase::Handle
PaymentManifestWebDataService::GetPaymentMethodManifest(
const std::string& payment_method,
WebDataServiceConsumer* consumer) { … }
std::unique_ptr<WDTypedResult>
PaymentManifestWebDataService::GetPaymentMethodManifestImpl(
const std::string& payment_method,
WebDatabase* db) { … }
WebDataServiceBase::Handle
PaymentManifestWebDataService::AddSecurePaymentConfirmationCredential(
std::unique_ptr<SecurePaymentConfirmationCredential> credential,
WebDataServiceConsumer* consumer) { … }
std::unique_ptr<WDTypedResult>
PaymentManifestWebDataService::AddSecurePaymentConfirmationCredentialImpl(
std::unique_ptr<SecurePaymentConfirmationCredential> credential,
WebDatabase* db) { … }
WebDataServiceBase::Handle
PaymentManifestWebDataService::GetSecurePaymentConfirmationCredentials(
std::vector<std::vector<uint8_t>> credential_ids,
const std::string& relying_party_id,
WebDataServiceConsumer* consumer) { … }
std::unique_ptr<WDTypedResult>
PaymentManifestWebDataService::GetSecurePaymentConfirmationCredentialsImpl(
std::vector<std::vector<uint8_t>> credential_ids,
const std::string& relying_party_id,
WebDatabase* db) { … }
void PaymentManifestWebDataService::ClearSecurePaymentConfirmationCredentials(
base::Time begin,
base::Time end,
base::OnceClosure callback) { … }
std::unique_ptr<WDTypedResult>
PaymentManifestWebDataService::ClearSecurePaymentConfirmationCredentialsImpl(
base::Time begin,
base::Time end,
WebDatabase* db) { … }
void PaymentManifestWebDataService::OnWebDataServiceRequestDone(
WebDataServiceBase::Handle h,
std::unique_ptr<WDTypedResult> result) { … }
void PaymentManifestWebDataService::RemoveExpiredData(WebDatabase* db) { … }
}