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

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

Issue 2878833002: Worklet: Move common code of addModule from Main/ThreadedWorklet to Worklet (Closed)
Patch Set: fix crashes 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 e6b5c8578b3986d939aa7b2c42146a6d8ced3aa9..2fd6837731721c17fab57ee87c4e400fcdca14fe 100644
--- a/third_party/WebKit/Source/core/workers/MainThreadWorklet.h
+++ b/third_party/WebKit/Source/core/workers/MainThreadWorklet.h
@@ -27,9 +27,6 @@ class CORE_EXPORT MainThreadWorklet : public Worklet {
public:
virtual ~MainThreadWorklet() = default;
- // Worklet
- ScriptPromise addModule(ScriptState*, const String& module_url) final;
-
// ContextLifecycleObserver
void ContextDestroyed(ExecutionContext*) final;
@@ -39,8 +36,9 @@ class CORE_EXPORT MainThreadWorklet : public Worklet {
explicit MainThreadWorklet(LocalFrame*);
private:
+ // Worklet.
void FetchAndInvokeScript(const KURL& module_url_record,
- ScriptPromiseResolver*);
+ ScriptPromiseResolver*) override;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698