#include "third_party/blink/renderer/modules/payments/can_make_payment_respond_with_observer.h"
#include "third_party/blink/renderer/bindings/core/v8/native_value_traits_impl.h"
#include "third_party/blink/renderer/bindings/core/v8/script_value.h"
#include "third_party/blink/renderer/bindings/core/v8/v8_binding_for_core.h"
#include "third_party/blink/renderer/core/execution_context/execution_context.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/modules/payments/payment_handler_utils.h"
#include "third_party/blink/renderer/modules/payments/payments_validators.h"
#include "third_party/blink/renderer/modules/service_worker/service_worker_global_scope.h"
#include "third_party/blink/renderer/modules/service_worker/wait_until_observer.h"
#include "third_party/blink/renderer/platform/bindings/exception_state.h"
#include "v8/include/v8.h"
namespace blink {
namespace {
ResponseType;
}
CanMakePaymentRespondWithObserver::CanMakePaymentRespondWithObserver(
ExecutionContext* context,
int event_id,
WaitUntilObserver* observer)
: … { … }
void CanMakePaymentRespondWithObserver::OnResponseRejected(
mojom::blink::ServiceWorkerResponseError error) { … }
void CanMakePaymentRespondWithObserver::OnResponseFulfilled(
ScriptState* script_state,
const ScriptValue& value,
const ExceptionContext& exception_context) { … }
void CanMakePaymentRespondWithObserver::OnNoResponse(ScriptState*) { … }
void CanMakePaymentRespondWithObserver::Trace(Visitor* visitor) const { … }
void CanMakePaymentRespondWithObserver::ObservePromiseResponse(
ScriptState* script_state,
ScriptPromiseUntyped promise,
ExceptionState& exception_state) { … }
void CanMakePaymentRespondWithObserver::Respond(ResponseType response_type,
bool can_make_payment) { … }
}