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

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

Issue 1733353004: Introduce WorkerBackingThread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/DedicatedWorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp b/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp
index 2681732decfdd79c0658148f7f4abdf05ef8b0ea..bc45783177a326c10013b99cfaa82689f972b7b3 100644
--- a/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/DedicatedWorkerThread.cpp
@@ -31,6 +31,7 @@
#include "core/workers/DedicatedWorkerThread.h"
#include "core/workers/DedicatedWorkerGlobalScope.h"
+#include "core/workers/WorkerBackingThread.h"
#include "core/workers/WorkerObjectProxy.h"
#include "core/workers/WorkerThreadStartupData.h"
@@ -43,6 +44,7 @@ PassOwnPtr<DedicatedWorkerThread> DedicatedWorkerThread::create(PassRefPtr<Worke
DedicatedWorkerThread::DedicatedWorkerThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerObjectProxy& workerObjectProxy, double timeOrigin)
: WorkerThread(workerLoaderProxy, workerObjectProxy)
+ , m_workerBackingThread(WorkerBackingThread::create("DedicatedWorker Thread"))
, m_workerObjectProxy(workerObjectProxy)
, m_timeOrigin(timeOrigin)
{
@@ -57,13 +59,6 @@ WorkerGlobalScope* DedicatedWorkerThread::createWorkerGlobalScope(PassOwnPtr<Wor
return DedicatedWorkerGlobalScope::create(this, startupData, m_timeOrigin);
}
-WebThreadSupportingGC& DedicatedWorkerThread::backingThread()
-{
- if (!m_thread)
- m_thread = WebThreadSupportingGC::create("DedicatedWorker Thread");
- return *m_thread.get();
-}
-
void DedicatedWorkerThread::postInitialize()
{
// Notify the parent object of our current active state before the event

Powered by Google App Engine
This is Rietveld 408576698