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 7a4fb4f017ca2c08f2750ad0c04c4f00bc1f3442..b41a95557a31a0302876b0bd82cf2e7618af70cc 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 |
@@ -36,6 +37,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: |