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

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

Issue 887463003: Turn WorkerLoaderProxy into a threadsafe, ref-counted object. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Clarify WorkerLoaderProxyProvider's obligations on shutdown Created 5 years, 10 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: Source/modules/serviceworkers/ServiceWorkerThread.cpp
diff --git a/Source/modules/serviceworkers/ServiceWorkerThread.cpp b/Source/modules/serviceworkers/ServiceWorkerThread.cpp
index b732b91339184ca77bbfffc98dd6f96ddf2e0cd9..022975d948efd3fd049915ca8ca6373ae9d592ab 100644
--- a/Source/modules/serviceworkers/ServiceWorkerThread.cpp
+++ b/Source/modules/serviceworkers/ServiceWorkerThread.cpp
@@ -37,12 +37,12 @@
namespace blink {
-PassRefPtr<ServiceWorkerThread> ServiceWorkerThread::create(WorkerLoaderProxy& workerLoaderProxy, WorkerReportingProxy& workerReportingProxy, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData)
+PassRefPtr<ServiceWorkerThread> ServiceWorkerThread::create(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData)
{
return adoptRef(new ServiceWorkerThread(workerLoaderProxy, workerReportingProxy, startupData));
}
-ServiceWorkerThread::ServiceWorkerThread(WorkerLoaderProxy& workerLoaderProxy, WorkerReportingProxy& workerReportingProxy, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData)
+ServiceWorkerThread::ServiceWorkerThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData> startupData)
: WorkerThread(workerLoaderProxy, workerReportingProxy, startupData)
{
}
« no previous file with comments | « Source/modules/serviceworkers/ServiceWorkerThread.h ('k') | Source/modules/websockets/WorkerWebSocketChannel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698