#include "components/autofill/core/browser/payments/payments_requests/upload_card_request.h"
#include <string>
#include <string_view>
#include "base/feature_list.h"
#include "base/json/json_writer.h"
#include "base/strings/escape.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/common/autofill_payments_features.h"
namespace autofill::payments {
namespace {
const char kUploadCardRequestPath[] = …;
const char kUploadCardRequestFormat[] = …;
const char kUploadCardRequestFormatWithoutCvc[] = …;
}
UploadCardRequest::UploadCardRequest(
const PaymentsNetworkInterface::UploadCardRequestDetails& request_details,
const bool full_sync_enabled,
base::OnceCallback<void(
PaymentsAutofillClient::PaymentsRpcResult,
const PaymentsNetworkInterface::UploadCardResponseDetails&)> callback)
: … { … }
UploadCardRequest::~UploadCardRequest() = default;
std::string UploadCardRequest::GetRequestUrlPath() { … }
std::string UploadCardRequest::GetRequestContentType() { … }
std::string UploadCardRequest::GetRequestContent() { … }
void UploadCardRequest::ParseResponse(const base::Value::Dict& response) { … }
bool UploadCardRequest::IsResponseComplete() { … }
void UploadCardRequest::RespondToDelegate(
PaymentsAutofillClient::PaymentsRpcResult result) { … }
std::string UploadCardRequest::GetHistogramName() const { … }
std::optional<base::TimeDelta> UploadCardRequest::GetTimeout() const { … }
}