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

Unified Diff: third_party/WebKit/Source/modules/payments/PaymentCompleter.h

Issue 2054823002: PaymentRequest: complete() method should take PaymentComplete enum value. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 6 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/PaymentCompleter.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentCompleter.h b/third_party/WebKit/Source/modules/payments/PaymentCompleter.h
index 284d2a16d9e36bd5fd29e549b4ec85daff423cc3..70e5c80fe078449e1da0b181ac6124047c2e8015 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentCompleter.h
+++ b/third_party/WebKit/Source/modules/payments/PaymentCompleter.h
@@ -11,11 +11,17 @@
namespace blink {
+enum PaymentComplete {
+ Success,
+ Fail,
+ Unknown
+};
+
class ScriptState;
class MODULES_EXPORT PaymentCompleter : public GarbageCollectedMixin {
public:
- virtual ScriptPromise complete(ScriptState*, bool success) = 0;
+ virtual ScriptPromise complete(ScriptState*, PaymentComplete result) = 0;
protected:
virtual ~PaymentCompleter() {}

Powered by Google App Engine
This is Rietveld 408576698