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

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

Issue 2911093002: Worklet: Move loader client impl from ThreadedWorklet to ThreadedWorkletMessagingProxy
Patch Set: rebase 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/ThreadedWorklet.h
diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorklet.h b/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
index e7a2921a15f47ba11f5ead636bc6f4536955ac77..297d9978d2d35e1178631fdcd6974e40ea013ad0 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
+++ b/third_party/WebKit/Source/core/workers/ThreadedWorklet.h
@@ -9,7 +9,6 @@
#include "bindings/core/v8/ScriptPromiseResolver.h"
#include "core/CoreExport.h"
-#include "core/loader/WorkletScriptLoader.h"
#include "platform/heap/Handle.h"
namespace blink {
@@ -22,18 +21,13 @@ class WorkletGlobalScopeProxy;
// threaded worklets while module loading is being implemented for main thread
// worklets. This and MainThreadWorklet will be merged into the base Worklet
// class once threaded worklets are also ready to use module loading.
-class CORE_EXPORT ThreadedWorklet : public Worklet,
- public WorkletScriptLoader::Client {
+class CORE_EXPORT ThreadedWorklet : public Worklet {
USING_GARBAGE_COLLECTED_MIXIN(ThreadedWorklet);
WTF_MAKE_NONCOPYABLE(ThreadedWorklet);
public:
virtual ~ThreadedWorklet() = default;
- // WorkletScriptLoader::Client
- void NotifyWorkletScriptLoadingFinished(WorkletScriptLoader*,
- const ScriptSourceCode&) final;
-
// ContextLifecycleObserver
void ContextDestroyed(ExecutionContext*) final;
@@ -54,9 +48,6 @@ class CORE_EXPORT ThreadedWorklet : public Worklet,
// Called when addModule() is called for the first time.
virtual void Initialize() = 0;
virtual bool IsInitialized() const = 0;
-
- HeapHashMap<Member<WorkletScriptLoader>, Member<ScriptPromiseResolver>>
- loader_to_resolver_map_;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698