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

Side by Side 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, 3 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 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698