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

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

Issue 2697123003: Use ExecutionContext instead of Document in PaymentRequest constructor. (Closed)
Patch Set: Created 3 years, 10 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PaymentCompleter_h 5 #ifndef PaymentCompleter_h
6 #define PaymentCompleter_h 6 #define PaymentCompleter_h
7 7
8 #include "bindings/core/v8/ScriptPromise.h" 8 #include "bindings/core/v8/ScriptPromise.h"
9 #include "modules/ModulesExport.h" 9 #include "modules/ModulesExport.h"
10 #include "platform/heap/GarbageCollected.h" 10 #include "platform/heap/GarbageCollected.h"
11 11
12 namespace blink { 12 namespace blink {
13 13
14 class ScriptState;
15
16 class MODULES_EXPORT PaymentCompleter : public GarbageCollectedMixin { 14 class MODULES_EXPORT PaymentCompleter : public GarbageCollectedMixin {
17 public: 15 public:
18 enum PaymentComplete { Success, Fail, Unknown }; 16 enum PaymentComplete { Success, Fail, Unknown };
19 17
20 virtual ScriptPromise complete(ScriptState*, PaymentComplete result) = 0; 18 virtual ScriptPromise complete(PaymentComplete result) = 0;
21 19
22 protected: 20 protected:
23 virtual ~PaymentCompleter() {} 21 virtual ~PaymentCompleter() {}
24 }; 22 };
25 23
26 } // namespace blink 24 } // namespace blink
27 25
28 #endif // PaymentCompleter_h 26 #endif // PaymentCompleter_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698