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

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

Issue 2910953002: Worklet: Enqueue tasks into outsideSetting's event loop (Closed)
Patch Set: fix header inclusion Created 3 years, 7 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 e651ddaafb7c8f9e278e8c39bf3e01ab35b45cf1..90cae50af1d78923d3bb38ded0ae5458fff456d8 100644
--- a/third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h
+++ b/third_party/WebKit/Source/core/workers/WorkletGlobalScopeProxy.h
@@ -6,6 +6,7 @@
#define WorkletGlobalScopeProxy_h
#include "core/CoreExport.h"
+#include "platform/WebTaskRunner.h"
#include "platform/weborigin/KURL.h"
#include "public/platform/WebURLRequest.h"
@@ -23,9 +24,11 @@ class CORE_EXPORT 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(const KURL& module_url_record,
- WebURLRequest::FetchCredentialsMode,
- WorkletPendingTasks*) {}
+ virtual void FetchAndInvokeScript(
+ const KURL& module_url_record,
+ WebURLRequest::FetchCredentialsMode,
+ RefPtr<WebTaskRunner> parent_frame_task_runner,
+ WorkletPendingTasks*) {}
// Evaluates the given script source code. This should be called only for
// threaded worklets that still use classic script loading.

Powered by Google App Engine
This is Rietveld 408576698