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

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 GarbageCollectedFinalized<PaymentInstruments>,
haraken 2017/03/30 00:00:45 "Finalized" wouldn't be needed.
zino 2017/03/30 00:12:53 Done.
21 public ScriptWrappable {
22 DEFINE_WRAPPERTYPEINFO();
23 WTF_MAKE_NONCOPYABLE(PaymentInstruments);
24
25 DECLARE_TRACE();
please use gerrit instead 2017/03/29 21:30:16 Appears to still be private.
zino 2017/03/30 00:12:53 Done.
26
27 public:
28 PaymentInstruments();
29
30 ScriptPromise deleteInstrument(const String& instrumentKey);
31 ScriptPromise get(const String& instrumentKey);
32 ScriptPromise keys();
33 ScriptPromise has(const String& instrumentKey);
34 ScriptPromise set(const String& instrumentKey,
35 const PaymentInstrument& details);
36 };
37
38 } // namespace blink
39
40 #endif // PaymentInstruments_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698