chromium/components/payments/content/android_payment_app.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "components/payments/content/android_payment_app.h"

#include <utility>

#include "base/check.h"
#include "build/chromeos_buildflags.h"
#include "components/payments/core/method_strings.h"
#include "components/payments/core/native_error_strings.h"
#include "components/payments/core/payer_data.h"
#include "content/public/browser/web_contents.h"

namespace payments {

AndroidPaymentApp::AndroidPaymentApp(
    const std::set<std::string>& payment_method_names,
    std::unique_ptr<std::map<std::string, std::set<std::string>>>
        stringified_method_data,
    const GURL& top_level_origin,
    const GURL& payment_request_origin,
    const std::string& payment_request_id,
    std::unique_ptr<AndroidAppDescription> description,
    base::WeakPtr<AndroidAppCommunication> communication,
    content::GlobalRenderFrameHostId frame_routing_id,
    const std::optional<base::UnguessableToken>& twa_instance_identifier)
    :{}

AndroidPaymentApp::~AndroidPaymentApp() {}

void AndroidPaymentApp::InvokePaymentApp(base::WeakPtr<Delegate> delegate) {}

bool AndroidPaymentApp::IsCompleteForPayment() const {}

bool AndroidPaymentApp::CanPreselect() const {}

std::u16string AndroidPaymentApp::GetMissingInfoLabel() const {}

bool AndroidPaymentApp::HasEnrolledInstrument() const {}

void AndroidPaymentApp::RecordUse() {}

bool AndroidPaymentApp::NeedsInstallation() const {}

std::string AndroidPaymentApp::GetId() const {}

std::u16string AndroidPaymentApp::GetLabel() const {}

std::u16string AndroidPaymentApp::GetSublabel() const {}

const SkBitmap* AndroidPaymentApp::icon_bitmap() const {}

bool AndroidPaymentApp::IsValidForModifier(const std::string& method) const {}

base::WeakPtr<PaymentApp> AndroidPaymentApp::AsWeakPtr() {}

bool AndroidPaymentApp::HandlesShippingAddress() const {}

bool AndroidPaymentApp::HandlesPayerName() const {}

bool AndroidPaymentApp::HandlesPayerEmail() const {}

bool AndroidPaymentApp::HandlesPayerPhone() const {}

bool AndroidPaymentApp::IsWaitingForPaymentDetailsUpdate() const {}

void AndroidPaymentApp::UpdateWith(
    mojom::PaymentRequestDetailsUpdatePtr details_update) {}

void AndroidPaymentApp::OnPaymentDetailsNotUpdated() {}

void AndroidPaymentApp::AbortPaymentApp(
    base::OnceCallback<void(bool)> abort_callback) {}

bool AndroidPaymentApp::IsPreferred() const {}

void AndroidPaymentApp::OnPaymentAppResponse(
    base::WeakPtr<Delegate> delegate,
    const std::optional<std::string>& error_message,
    bool is_activity_result_ok,
    const std::string& payment_method_identifier,
    const std::string& stringified_details) {}

}  // namespace payments