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

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

Issue 2775343002: PaymentHandler: Initial implementation for PaymentInstruments. (Closed)
Patch Set: PaymentHandler: Initial implementation for PaymentInstruments. Created 3 years, 8 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 2017 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 PaymentInstruments_h
6 #define PaymentInstruments_h
7
8 #include "bindings/core/v8/ScriptWrappable.h"
9 #include "modules/ModulesExport.h"
10 #include "platform/heap/Handle.h"
11 #include "platform/wtf/Noncopyable.h"
12 #include "platform/wtf/text/WTFString.h"
13
14 namespace blink {
15
16 class PaymentInstrument;
17 class ScriptPromise;
18
19 class MODULES_EXPORT PaymentInstruments final
20 : public GarbageCollected<PaymentInstruments>,
21 public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO();
23 WTF_MAKE_NONCOPYABLE(PaymentInstruments);
24
25 public:
26 PaymentInstruments();
27
28 ScriptPromise deleteInstrument(const String& instrumentKey);
29 ScriptPromise get(const String& instrumentKey);
30 ScriptPromise keys();
31 ScriptPromise has(const String& instrumentKey);
32 ScriptPromise set(const String& instrumentKey,
33 const PaymentInstrument& details);
34
35 DECLARE_TRACE();
36 };
37
38 } // namespace blink
39
40 #endif // PaymentInstruments_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698