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

Unified Diff: third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.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/MainThreadWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
index 7c5ffaebbb1115510e628b739ce2b487e68e11cf..8b34023b3cc2bdd56e87b6028879543ce797a484 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorkletGlobalScope.h
@@ -10,6 +10,7 @@
#include "core/dom/ExecutionContext.h"
#include "core/workers/WorkletGlobalScope.h"
#include "core/workers/WorkletPendingTasks.h"
+#include "platform/WebTaskRunner.h"
#include "public/platform/WebURLRequest.h"
namespace blink {
@@ -36,9 +37,15 @@ class CORE_EXPORT MainThreadWorkletGlobalScope
void ReportDeprecation(UseCounter::Feature) override;
WorkerThread* GetThread() const final;
+ // Implementation of the "fetch and invoke a worklet script" algorithm:
+ // https://drafts.css-houdini.org/worklets/#fetch-and-invoke-a-worklet-script
+ // When script evaluation is done or any exception happens, it's notified to
+ // the given WorkletPendingTasks via |parent_frame_task_runner|.
kinuko 2017/05/30 04:38:52 nit: parent_frame_task_runner -> outside_settings_
nhiroki 2017/05/30 05:25:30 Done.
void FetchAndInvokeScript(const KURL& module_url_record,
WebURLRequest::FetchCredentialsMode,
+ RefPtr<WebTaskRunner> parent_frame_task_runner,
WorkletPendingTasks*);
+
void Terminate();
// ExecutionContext

Powered by Google App Engine
This is Rietveld 408576698