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

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

Issue 2854003002: Worklet: Make the latter half of addModule() async (Closed)
Patch Set: WrapWeakPersistent -> WrapPersistent 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/MainThreadWorklet.h
diff --git a/third_party/WebKit/Source/core/workers/MainThreadWorklet.h b/third_party/WebKit/Source/core/workers/MainThreadWorklet.h
index de5853b093bb05442a58c6c296fec91e41c83e93..e6b5c8578b3986d939aa7b2c42146a6d8ced3aa9 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorklet.h
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorklet.h
@@ -7,13 +7,14 @@
#include "core/workers/Worklet.h"
-#include "bindings/core/v8/ScriptPromiseResolver.h"
+#include "bindings/core/v8/ScriptPromise.h"
#include "core/CoreExport.h"
#include "platform/heap/Handle.h"
namespace blink {
class LocalFrame;
+class ScriptPromiseResolver;
// A MainThreadWorklet is a worklet that runs only on the main thread.
// TODO(nhiroki): This is a temporary class to support module loading for main
@@ -36,6 +37,10 @@ class CORE_EXPORT MainThreadWorklet : public Worklet {
protected:
explicit MainThreadWorklet(LocalFrame*);
+
+ private:
+ void FetchAndInvokeScript(const KURL& module_url_record,
+ ScriptPromiseResolver*);
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698