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

Unified Diff: third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.cpp

Issue 2894233002: [animation-worklet] invoke animate callback on mutation signal (Closed)
Patch Set: 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/ThreadedWorkletMessagingProxy.cpp
diff --git a/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.cpp b/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.cpp
index cf38c7bf066aa0296bf946b9d00c5807689826f9..d92a1fd2fd25191165f56fc0f4c4345c07dc6738 100644
--- a/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.cpp
+++ b/third_party/WebKit/Source/core/workers/ThreadedWorkletMessagingProxy.cpp
@@ -11,6 +11,7 @@
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/origin_trials/OriginTrialContext.h"
#include "core/workers/ThreadedWorkletObjectProxy.h"
+#include "core/workers/WorkerClients.h"
#include "core/workers/WorkerInspectorProxy.h"
#include "core/workers/WorkerThreadStartupData.h"
#include "core/workers/WorkletGlobalScope.h"
@@ -20,8 +21,11 @@
namespace blink {
ThreadedWorkletMessagingProxy::ThreadedWorkletMessagingProxy(
- ExecutionContext* execution_context)
- : ThreadedMessagingProxyBase(execution_context), weak_ptr_factory_(this) {
+ ExecutionContext* execution_context,
+ WorkerClients* worker_clients)
+ : ThreadedMessagingProxyBase(execution_context),
+ worker_clients_(worker_clients),
+ weak_ptr_factory_(this) {
worklet_object_proxy_ = ThreadedWorkletObjectProxy::Create(
weak_ptr_factory_.CreateWeakPtr(), GetParentFrameTaskRunners());
}
@@ -48,7 +52,7 @@ void ThreadedWorkletMessagingProxy::Initialize() {
WorkerThreadStartupData::Create(
script_url, document->UserAgent(), String(), nullptr, start_mode,
csp->Headers().get(), /* referrerPolicy */ String(), starter_origin,
- nullptr, document->AddressSpace(),
+ worker_clients_.Release(), document->AddressSpace(),
OriginTrialContext::GetTokens(document).get(),
std::move(worker_settings), WorkerV8Settings::Default());

Powered by Google App Engine
This is Rietveld 408576698