| 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
|
|
|