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

Unified Diff: Source/modules/serviceworkers/ServiceWorkerThread.cpp

Issue 1100413004: workers: Move ownership of WebThread from WorkerThread (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: reference Created 5 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 | « 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: Source/modules/serviceworkers/ServiceWorkerThread.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerThread.cpp b/Source/modules/serviceworkers/ServiceWorkerThread.cpp
index 2ca84dfd202a0974c98419e8ad675a0c43bb1013..3074cde1b37733ab0f6aac4e993708c4c866f32a 100644
--- a/Source/modules/serviceworkers/ServiceWorkerThread.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerThread.cpp
@@ -43,7 +43,7 @@ PassRefPtr<ServiceWorkerThread> ServiceWorkerThread::create(PassRefPtr<WorkerLoa
}
ServiceWorkerThread::ServiceWorkerThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy, PassOwnPtr<WorkerThreadStartupData> startupData)
- : WorkerThread("ServiceWorker Thread", workerLoaderProxy, workerReportingProxy, startupData)
+ : WorkerThread(workerLoaderProxy, workerReportingProxy, startupData)
{
}
@@ -56,4 +56,11 @@ PassRefPtrWillBeRawPtr<WorkerGlobalScope> ServiceWorkerThread::createWorkerGloba
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 | « Source/modules/serviceworkers/ServiceWorkerThread.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698