| 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 AnimationWorkletGlobalScopeProxy_h | 
|   6 #define PaymentUpdater_h |   6 #define AnimationWorkletGlobalScopeProxy_h | 
|   7  |   7  | 
|   8 #include "modules/ModulesExport.h" |   8 #include "core/workers/ThreadedWorkletMessagingProxy.h" | 
|   9 #include "platform/heap/GarbageCollected.h" |  | 
|  10 #include "wtf/text/WTFString.h" |  | 
|  11  |   9  | 
|  12 namespace blink { |  10 namespace blink { | 
|  13  |  11  | 
|  14 class ScriptValue; |  12 class LocalFrame; | 
|  15  |  13  | 
|  16 class MODULES_EXPORT PaymentUpdater : public GarbageCollectedMixin { |  14 class AnimationWorkletGlobalScopeProxy : public ThreadedWorkletMessagingProxy { | 
|  17 public: |  15 public: | 
|  18     virtual void onUpdatePaymentDetails(const ScriptValue& detailsScriptValue) =
     0; |  16     explicit AnimationWorkletGlobalScopeProxy(LocalFrame*); | 
|  19     virtual void onUpdatePaymentDetailsFailure(const String& error) = 0; |  17     ~AnimationWorkletGlobalScopeProxy() override; | 
|  20  |  18  | 
|  21 protected: |  19 protected: | 
|  22     virtual ~PaymentUpdater() {} |  20     std::unique_ptr<WorkerThread> createWorkerThread() final; | 
|  23 }; |  21 }; | 
|  24  |  22  | 
|  25 } // namespace blink |  23 } // namespace blink | 
|  26  |  24  | 
|  27 #endif // PaymentUpdater_h |  25 #endif // AnimationWorkletGlobalScopeProxy_h | 
| OLD | NEW |