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

Unified Diff: third_party/WebKit/Source/core/workers/SharedWorkerThread.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/SharedWorkerThread.cpp
diff --git a/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp b/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
index 393fda5e9d6d5e9296b6fee326344a039f5fe719..1c3d7528179b15eb3e5ecc10123a2f8e7614dbad 100644
--- a/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
+++ b/third_party/WebKit/Source/core/workers/SharedWorkerThread.cpp
@@ -31,6 +31,7 @@
#include "core/workers/SharedWorkerThread.h"
#include "core/workers/SharedWorkerGlobalScope.h"
+#include "core/workers/WorkerBackingThread.h"
#include "core/workers/WorkerThreadStartupData.h"
namespace blink {
@@ -42,6 +43,7 @@ PassOwnPtr<SharedWorkerThread> SharedWorkerThread::create(const String& name, Pa
SharedWorkerThread::SharedWorkerThread(const String& name, PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
: WorkerThread(workerLoaderProxy, workerReportingProxy)
+ , m_workerBackingThread(WorkerBackingThread::create("SharedWorker Thread"))
, m_name(name.isolatedCopy())
{
}
@@ -55,11 +57,4 @@ RawPtr<WorkerGlobalScope> SharedWorkerThread::createWorkerGlobalScope(PassOwnPtr
return SharedWorkerGlobalScope::create(m_name, this, startupData);
}
-WebThreadSupportingGC& SharedWorkerThread::backingThread()
-{
- if (!m_thread)
- m_thread = WebThreadSupportingGC::create("SharedWorker Thread");
- return *m_thread.get();
-}
-
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698