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

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

Issue 1535943005: Initial implementation of bindings and basic classes for worklets. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove AbstractGlobalScope. Created 5 years 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/WorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/WorkerThread.cpp b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
index a0ddad6d3d3000e42349f8ca5bffa22b7aa4876d..1a99ce04fb146ed1a81c743c257d05bc957a1485 100644
--- a/third_party/WebKit/Source/core/workers/WorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/WorkerThread.cpp
@@ -71,7 +71,7 @@ public:
{
Microtask::performCheckpoint(m_workerThread->isolate());
if (WorkerGlobalScope* globalScope = m_workerThread->workerGlobalScope()) {
- if (WorkerScriptController* scriptController = globalScope->script())
+ if (GlobalScopeScriptController* scriptController = globalScope->script())
scriptController->rejectedPromises()->processQueue();
if (globalScope->isClosing()) {
m_workerThread->workerReportingProxy().workerGlobalScopeClosed();
@@ -295,13 +295,13 @@ void WorkerThread::initialize(PassOwnPtr<WorkerThreadStartupData> startupData)
m_workerGlobalScope = createWorkerGlobalScope(startupData);
m_workerGlobalScope->scriptLoaded(sourceCode.length(), cachedMetaData.get() ? cachedMetaData->size() : 0);
- // The corresponding call to didStopRunLoop() is in ~WorkerScriptController().
+ // The corresponding call to didStopRunLoop() is in GlobalScopeScriptController::dispose().
didStartRunLoop();
// Notify proxy that a new WorkerGlobalScope has been created and started.
m_workerReportingProxy.workerGlobalScopeStarted(m_workerGlobalScope.get());
- WorkerScriptController* script = m_workerGlobalScope->script();
+ GlobalScopeScriptController* script = m_workerGlobalScope->script();
kinuko 2015/12/24 04:45:51 WorkerScriptController?
if (!script->isExecutionForbidden())
script->initializeContextIfNeeded();
}

Powered by Google App Engine
This is Rietveld 408576698