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

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

Issue 2310673002: [worklets] Split up InProcessWorkerMessagingProxy into a base+worker class. (Closed)
Patch Set: ... Created 4 years, 3 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/InProcessWorkerBase.cpp
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
index 0714ccf249535d61a6d630fb3fbb1b95558314b6..48f02d0a910ccee21d4be534e6c36a0dd52f22e6 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerBase.cpp
@@ -10,7 +10,7 @@
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/csp/ContentSecurityPolicy.h"
#include "core/inspector/InspectorInstrumentation.h"
-#include "core/workers/InProcessWorkerGlobalScopeProxy.h"
+#include "core/workers/InProcessWorkerMessagingProxy.h"
#include "core/workers/WorkerScriptLoader.h"
#include "core/workers/WorkerThread.h"
#include "platform/network/ContentSecurityPolicyResponseHeaders.h"
@@ -30,7 +30,7 @@ InProcessWorkerBase::~InProcessWorkerBase()
DCHECK(isMainThread());
if (!m_contextProxy)
return;
- m_contextProxy->workerObjectDestroyed();
+ m_contextProxy->parentObjectDestroyed();
}
void InProcessWorkerBase::postMessage(ExecutionContext* context, PassRefPtr<SerializedScriptValue> message, const MessagePortArray& ports, ExceptionState& exceptionState)
@@ -69,7 +69,7 @@ bool InProcessWorkerBase::initialize(ExecutionContext* context, const String& ur
void InProcessWorkerBase::terminate()
{
if (m_contextProxy)
- m_contextProxy->terminateWorkerGlobalScope();
+ m_contextProxy->terminateGlobalScope();
}
void InProcessWorkerBase::stop()

Powered by Google App Engine
This is Rietveld 408576698