blob: 43b7457905ab71df881d2a2ff37c5836d78dfbb9 [file] [log] [blame]
// Copyright 2017 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef THIRD_PARTY_BLINK_RENDERER_MODULES_PAYMENTS_ABORT_PAYMENT_EVENT_H_
#define THIRD_PARTY_BLINK_RENDERER_MODULES_PAYMENTS_ABORT_PAYMENT_EVENT_H_
#include "base/macros.h"
#include "third_party/blink/renderer/modules/event_modules.h"
#include "third_party/blink/renderer/modules/service_worker/extendable_event.h"
#include "third_party/blink/renderer/platform/bindings/script_wrappable.h"
#include "third_party/blink/renderer/platform/heap/handle.h"
namespace WTF {
class AtomicString;
}
namespace blink {
class ExtendableEventInit;
class RespondWithObserver;
class ScriptState;
class MODULES_EXPORT AbortPaymentEvent final : public ExtendableEvent {
DEFINE_WRAPPERTYPEINFO();
public:
static AbortPaymentEvent* Create(const AtomicString& type,
const ExtendableEventInit*);
static AbortPaymentEvent* Create(const AtomicString& type,
const ExtendableEventInit*,
RespondWithObserver*,
WaitUntilObserver*);
AbortPaymentEvent(const AtomicString& type,
const ExtendableEventInit*,
RespondWithObserver*,
WaitUntilObserver*);
~AbortPaymentEvent() override;
const AtomicString& InterfaceName() const override;
void respondWith(ScriptState*, ScriptPromise, ExceptionState&);
void Trace(Visitor*) const override;
private:
Member<RespondWithObserver> observer_;
DISALLOW_COPY_AND_ASSIGN(AbortPaymentEvent);
};
} // namespace blink
#endif // THIRD_PARTY_BLINK_RENDERER_MODULES_PAYMENTS_ABORT_PAYMENT_EVENT_H_