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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.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
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
index e84a426f25e05d690601c253b87bad7ea8266475..efa391c3618954eb75fcea4d4dc08583e6c68915 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
@@ -30,6 +30,7 @@
#include "modules/serviceworkers/ServiceWorkerThread.h"
+#include "core/workers/WorkerBackingThread.h"
#include "core/workers/WorkerThreadStartupData.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
@@ -42,6 +43,7 @@ PassOwnPtr<ServiceWorkerThread> ServiceWorkerThread::create(PassRefPtr<WorkerLoa
ServiceWorkerThread::ServiceWorkerThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
: WorkerThread(workerLoaderProxy, workerReportingProxy)
+ , m_workerBackingThread(WorkerBackingThread::create("ServiceWorker Thread"))
{
}
@@ -54,11 +56,4 @@ WorkerGlobalScope* ServiceWorkerThread::createWorkerGlobalScope(PassOwnPtr<Worke
return ServiceWorkerGlobalScope::create(this, startupData);
}
-WebThreadSupportingGC& ServiceWorkerThread::backingThread()
-{
- if (!m_thread)
- m_thread = WebThreadSupportingGC::create("ServiceWorker Thread");
- return *m_thread.get();
-}
-
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698