Chromium Code Reviews| 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" |
|
please use gerrit instead
2016/07/29 15:40:50
#include "wtf/text/WTFString.h"
pals
2016/08/01 11:18:23
Done.
| |
| 10 | 10 |
| 11 namespace blink { | 11 namespace blink { |
| 12 | 12 |
| 13 class ScriptValue; | 13 class ScriptValue; |
| 14 | 14 |
| 15 class MODULES_EXPORT PaymentUpdater : public GarbageCollectedMixin { | 15 class MODULES_EXPORT PaymentUpdater : public GarbageCollectedMixin { |
| 16 public: | 16 public: |
| 17 virtual void onUpdatePaymentDetails(const ScriptValue& detailsScriptValue) = 0; | 17 virtual void onUpdatePaymentDetails(const ScriptValue& detailsScriptValue) = 0; |
| 18 virtual void onUpdatePaymentDetailsFailure(const ScriptValue& error) = 0; | 18 virtual void onUpdatePaymentDetailsFailure(const ScriptValue& error) = 0; |
|
please use gerrit instead
2016/07/29 15:40:51
Change ScriptValue to String
pals
2016/08/01 11:18:23
Done.
| |
| 19 virtual void abortPaymentRequest(const String& error) = 0; | |
|
please use gerrit instead
2016/07/29 15:40:50
No need for extra function.
pals
2016/08/01 11:18:23
Done.
| |
| 19 | 20 |
| 20 protected: | 21 protected: |
| 21 virtual ~PaymentUpdater() {} | 22 virtual ~PaymentUpdater() {} |
| 22 }; | 23 }; |
| 23 | 24 |
| 24 } // namespace blink | 25 } // namespace blink |
| 25 | 26 |
| 26 #endif // PaymentUpdater_h | 27 #endif // PaymentUpdater_h |
| OLD | NEW |