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

Unified 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, 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/payments/PaymentInstruments.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentInstruments.h b/third_party/WebKit/Source/modules/payments/PaymentInstruments.h
new file mode 100644
index 0000000000000000000000000000000000000000..415bcf9037ed7ba464ab0fb73916534a73cc8fd2
--- /dev/null
+++ b/third_party/WebKit/Source/modules/payments/PaymentInstruments.h
@@ -0,0 +1,40 @@
+// 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 PaymentInstruments_h
+#define PaymentInstruments_h
+
+#include "bindings/core/v8/ScriptWrappable.h"
+#include "modules/ModulesExport.h"
+#include "platform/heap/Handle.h"
+#include "platform/wtf/Noncopyable.h"
+#include "platform/wtf/text/WTFString.h"
+
+namespace blink {
+
+class PaymentInstrument;
+class ScriptPromise;
+
+class MODULES_EXPORT PaymentInstruments final
+ : public GarbageCollected<PaymentInstruments>,
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+ WTF_MAKE_NONCOPYABLE(PaymentInstruments);
+
+ public:
+ PaymentInstruments();
+
+ ScriptPromise deleteInstrument(const String& instrumentKey);
+ ScriptPromise get(const String& instrumentKey);
+ ScriptPromise keys();
+ ScriptPromise has(const String& instrumentKey);
+ ScriptPromise set(const String& instrumentKey,
+ const PaymentInstrument& details);
+
+ DECLARE_TRACE();
+};
+
+} // namespace blink
+
+#endif // PaymentInstruments_h

Powered by Google App Engine
This is Rietveld 408576698