| OLD | NEW |
| 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 PaymentUpdater_h | 5 #ifndef PaymentUpdater_h |
| 6 #define PaymentUpdater_h | 6 #define PaymentUpdater_h |
| 7 | 7 |
| 8 #include "modules/ModulesExport.h" | 8 #include "modules/ModulesExport.h" |
| 9 #include "platform/heap/GarbageCollected.h" | 9 #include "platform/heap/GarbageCollected.h" |
| 10 #include "wtf/text/WTFString.h" | 10 #include "platform/wtf/text/WTFString.h" |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class ScriptValue; | 14 class ScriptValue; |
| 15 | 15 |
| 16 class MODULES_EXPORT PaymentUpdater : public GarbageCollectedMixin { | 16 class MODULES_EXPORT PaymentUpdater : public GarbageCollectedMixin { |
| 17 public: | 17 public: |
| 18 virtual void OnUpdatePaymentDetails( | 18 virtual void OnUpdatePaymentDetails( |
| 19 const ScriptValue& details_script_value) = 0; | 19 const ScriptValue& details_script_value) = 0; |
| 20 virtual void OnUpdatePaymentDetailsFailure(const String& error) = 0; | 20 virtual void OnUpdatePaymentDetailsFailure(const String& error) = 0; |
| 21 | 21 |
| 22 protected: | 22 protected: |
| 23 virtual ~PaymentUpdater() {} | 23 virtual ~PaymentUpdater() {} |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 } // namespace blink | 26 } // namespace blink |
| 27 | 27 |
| 28 #endif // PaymentUpdater_h | 28 #endif // PaymentUpdater_h |
| OLD | NEW |