Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: third_party/WebKit/Source/modules/payments/PaymentResponse.h

Issue 1702223002: PaymentRequest API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows linking. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef PaymentResponse_h
6 #define PaymentResponse_h
7
8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "bindings/core/v8/ScriptValue.h"
10 #include "bindings/core/v8/ScriptWrappable.h"
11 #include "platform/heap/Handle.h"
12 #include "wtf/Noncopyable.h"
13 #include "wtf/text/WTFString.h"
14
15 namespace blink {
16
17 class ExceptionState;
18 class ScriptState;
19
20 class PaymentResponse final : public GarbageCollectedFinalized<PaymentResponse>, public ScriptWrappable {
21 DEFINE_WRAPPERTYPEINFO();
22 WTF_MAKE_NONCOPYABLE(PaymentResponse);
23
24 public:
25 PaymentResponse();
26 virtual ~PaymentResponse();
27
28 const String& methodName() const { return m_methodName; }
29 ScriptValue details(ScriptState*, ExceptionState&) const;
30
31 ScriptPromise complete(ScriptState*, bool success);
32
33 DEFINE_INLINE_TRACE() {}
34
35 private:
36 String m_methodName;
37 String m_stringifiedDetails;
38 };
39
40 } // namespace blink
41
42 #endif // PaymentResponse_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698