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

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

Issue 2830603003: Worklet: Move WorkletScriptLoader from MainThreadWorklet to MainThreadWorkletGlobalScope (Closed)
Patch Set: const auto& 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/WorkletGlobalScopeProxy.h
diff --git a/third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h b/third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h
index f049a50b1db5db476a0206c50cad541436fe9b15..8c9c8f502a62b29c2fe2f4d5f9191284b05a75b5 100644
--- a/third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h
+++ b/third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h
@@ -19,7 +19,16 @@ class CORE_EXPORT WorkletGlobalScopeProxy {
public:
virtual ~WorkletGlobalScopeProxy() {}
+ // Runs the "fetch and invoke a worklet script" algorithm:
+ // https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script
+ virtual void FetchAndInvokeScript(int32_t request_id,
+ const KURL& script_url) {}
+
+ // Evaluates the given script source code. This should be called only for
+ // threaded worklets that still use classic script loading.
virtual void EvaluateScript(const ScriptSourceCode&) = 0;
+
+ // Terminates the worklet global scope from the main thread.
virtual void TerminateWorkletGlobalScope() = 0;
};

Powered by Google App Engine
This is Rietveld 408576698