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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerScript.h

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/compositorworker/CompositorWorkerScript.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerScript.h
similarity index 68%
rename from third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h
rename to third_party/WebKit/Source/modules/compositorworker/CompositorWorkerScript.h
index 816f2b5c637027641b684f6e2ea3482d492c3aa6..d1b29f297164f5feb20fc8e18537ab7df9e303d0 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerThread.h
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerScript.h
@@ -2,10 +2,10 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CompositorWorkerThread_h
-#define CompositorWorkerThread_h
+#ifndef CompositorWorkerScript_h
+#define CompositorWorkerScript_h
-#include "core/workers/WorkerThread.h"
+#include "core/workers/WorkerScript.h"
#include "modules/ModulesExport.h"
namespace blink {
@@ -13,10 +13,10 @@ namespace blink {
class WorkerObjectProxy;
// This class is overridden in unit-tests.
-class MODULES_EXPORT CompositorWorkerThread : public WorkerThread {
+class MODULES_EXPORT CompositorWorkerScript : public WorkerScript {
public:
- static PassRefPtr<CompositorWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin);
- ~CompositorWorkerThread() override;
+ static PassRefPtr<CompositorWorkerScript> create(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin);
+ ~CompositorWorkerScript() override;
WorkerObjectProxy& workerObjectProxy() const { return m_workerObjectProxy; }
@@ -27,13 +27,13 @@ public:
static bool hasIsolateForTest();
protected:
- CompositorWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin);
+ CompositorWorkerScript(PassRefPtr<WorkerLoaderProxy>, WorkerObjectProxy&, double timeOrigin);
- // WorkerThread:
- PassRefPtrWillBeRawPtr<WorkerGlobalScope> createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData>) override;
+ // WorkerScript:
+ PassRefPtrWillBeRawPtr<WorkerGlobalScope> createWorkerGlobalScope(PassOwnPtr<WorkerScriptStartupData>) override;
WebThreadSupportingGC& backingThread() override;
- void didStartWorkerThread() override { }
- void willStopWorkerThread() override { }
+ void didStartWorkerScript() override { }
+ void willStopWorkerScript() override { }
void initializeBackingThread() override;
void shutdownBackingThread() override;
v8::Isolate* initializeIsolate() override;
@@ -48,4 +48,4 @@ private:
} // namespace blink
-#endif // CompositorWorkerThread_h
+#endif // CompositorWorkerScript_h

Powered by Google App Engine
This is Rietveld 408576698