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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedWorklet.h

Issue 2840523002: [DONT COMMIT] Worklet: Implement "addModule()" algorithm for main thread worklets (Closed)
Patch Set: rebase Created 3 years, 8 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/core/workers/ThreadedWorklet.h
diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorklet.h b/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
index c238fbf2d12f3efd6fc69ab936c4b6ce4bf54565..aed30e7e2c428f8fd3a1304e2d9885694ab12a77 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
+++ b/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
@@ -15,6 +15,7 @@
namespace blink {
class LocalFrame;
+class WorkletGlobalScopeProxy;
// A ThreadedWorklet is a worklet that runs off the main thread.
// TODO(nhiroki): This is a temporary class to keep classic script loading for
@@ -43,6 +44,9 @@ class CORE_EXPORT ThreadedWorklet : public Worklet,
// ContextLifecycleObserver
void ContextDestroyed(ExecutionContext*) final;
+ // Returns a proxy to WorkletGlobalScope on the context thread.
+ virtual WorkletGlobalScopeProxy* GetWorkletGlobalScopeProxy() const = 0;
+
DECLARE_VIRTUAL_TRACE();
protected:
« no previous file with comments | « third_party/WebKit/Source/core/workers/MainThreadWorklet.cpp ('k') | third_party/WebKit/Source/core/workers/Worklet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698