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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScopeProxy.h

Issue 2171973002: [WIP][worklets] ThreadedWorkletGlobalScope + AnimationWorkletGlobalScope Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ...... Created 4 years, 4 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/compositorworker/AnimationWorkletGlobalScopeProxy.h
diff --git a/third_party/WebKit/Source/modules/payments/PaymentUpdater.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScopeProxy.h
similarity index 33%
copy from third_party/WebKit/Source/modules/payments/PaymentUpdater.h
copy to third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScopeProxy.h
index 3224b3e63d15b1c0e7ca1745f079efde983b1865..8c1bca1702180ab9e122fae0d2f8f043c069ca82 100644
--- a/third_party/WebKit/Source/modules/payments/PaymentUpdater.h
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScopeProxy.h
@@ -2,26 +2,24 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef PaymentUpdater_h
-#define PaymentUpdater_h
+#ifndef AnimationWorkletGlobalScopeProxy_h
+#define AnimationWorkletGlobalScopeProxy_h
-#include "modules/ModulesExport.h"
-#include "platform/heap/GarbageCollected.h"
-#include "wtf/text/WTFString.h"
+#include "core/workers/ThreadedWorkletMessagingProxy.h"
namespace blink {
-class ScriptValue;
+class LocalFrame;
-class MODULES_EXPORT PaymentUpdater : public GarbageCollectedMixin {
+class AnimationWorkletGlobalScopeProxy : public ThreadedWorkletMessagingProxy {
public:
- virtual void onUpdatePaymentDetails(const ScriptValue& detailsScriptValue) = 0;
- virtual void onUpdatePaymentDetailsFailure(const String& error) = 0;
+ explicit AnimationWorkletGlobalScopeProxy(LocalFrame*);
+ ~AnimationWorkletGlobalScopeProxy() override;
protected:
- virtual ~PaymentUpdater() {}
+ std::unique_ptr<WorkerThread> createWorkerThread() final;
};
} // namespace blink
-#endif // PaymentUpdater_h
+#endif // AnimationWorkletGlobalScopeProxy_h

Powered by Google App Engine
This is Rietveld 408576698