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

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..74c377417e9d1cdbcc44f84e647e7e39d44a52db
--- /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 GarbageCollectedFinalized<PaymentInstruments>,
haraken 2017/03/30 00:00:45 "Finalized" wouldn't be needed.
zino 2017/03/30 00:12:53 Done.
+ public ScriptWrappable {
+ DEFINE_WRAPPERTYPEINFO();
+ WTF_MAKE_NONCOPYABLE(PaymentInstruments);
+
+ 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.
+
+ 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);
+};
+
+} // namespace blink
+
+#endif // PaymentInstruments_h

Powered by Google App Engine
This is Rietveld 408576698