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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScript.cpp

Issue 1728803002: Rename WorkerThread to WorkerScript Base URL: https://chromium.googlesource.com/chromium/src.git@workerscript-controller
Patch Set: Created 4 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: third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScript.cpp
diff --git a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScript.cpp
similarity index 77%
rename from third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
rename to third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScript.cpp
index d015ed47c38227f9143c877c34744aa525e1a198..c411cf852aac9b5576ebdda2d5c02817381ea7fe 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerThread.cpp
+++ b/third_party/WebKit/Source/modules/serviceworkers/ServiceWorkerScript.cpp
@@ -28,33 +28,33 @@
* OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
-#include "modules/serviceworkers/ServiceWorkerThread.h"
+#include "modules/serviceworkers/ServiceWorkerScript.h"
-#include "core/workers/WorkerThreadStartupData.h"
+#include "core/workers/WorkerScriptStartupData.h"
#include "modules/serviceworkers/ServiceWorkerGlobalScope.h"
namespace blink {
-PassRefPtr<ServiceWorkerThread> ServiceWorkerThread::create(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
+PassRefPtr<ServiceWorkerScript> ServiceWorkerScript::create(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
{
- return adoptRef(new ServiceWorkerThread(workerLoaderProxy, workerReportingProxy));
+ return adoptRef(new ServiceWorkerScript(workerLoaderProxy, workerReportingProxy));
}
-ServiceWorkerThread::ServiceWorkerThread(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
- : WorkerThread(workerLoaderProxy, workerReportingProxy)
+ServiceWorkerScript::ServiceWorkerScript(PassRefPtr<WorkerLoaderProxy> workerLoaderProxy, WorkerReportingProxy& workerReportingProxy)
+ : WorkerScript(workerLoaderProxy, workerReportingProxy)
{
}
-ServiceWorkerThread::~ServiceWorkerThread()
+ServiceWorkerScript::~ServiceWorkerScript()
{
}
-PassRefPtrWillBeRawPtr<WorkerGlobalScope> ServiceWorkerThread::createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData> startupData)
+PassRefPtrWillBeRawPtr<WorkerGlobalScope> ServiceWorkerScript::createWorkerGlobalScope(PassOwnPtr<WorkerScriptStartupData> startupData)
{
return ServiceWorkerGlobalScope::create(this, startupData);
}
-WebThreadSupportingGC& ServiceWorkerThread::backingThread()
+WebThreadSupportingGC& ServiceWorkerScript::backingThread()
{
if (!m_thread)
m_thread = WebThreadSupportingGC::create("ServiceWorker Thread");

Powered by Google App Engine
This is Rietveld 408576698