| Index: third_party/WebKit/Source/modules/serviceworkers/IsolatedWorkerThread.h
|
| diff --git a/third_party/WebKit/Source/modules/serviceworkers/IsolatedWorkerThread.h b/third_party/WebKit/Source/modules/serviceworkers/IsolatedWorkerThread.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..57cf707a9152be80c0acb02858bbb35393d668c2
|
| --- /dev/null
|
| +++ b/third_party/WebKit/Source/modules/serviceworkers/IsolatedWorkerThread.h
|
| @@ -0,0 +1,32 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef IsolatedWorkerThread_h
|
| +#define IsolatedWorkerThread_h
|
| +
|
| +#include "core/workers/WorkerThread.h"
|
| +
|
| +namespace blink {
|
| +
|
| +class WorkerBackingThread;
|
| +
|
| +class IsolatedWorkerThread final : public WorkerThread {
|
| +public:
|
| + static std::unique_ptr<IsolatedWorkerThread> create(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
|
| + ~IsolatedWorkerThread() override;
|
| +
|
| + WorkerBackingThread& workerBackingThread() override { return *m_workerBackingThread; }
|
| +
|
| +protected:
|
| + void clearWorkerBackingThread() override;
|
| + WorkerOrWorkletGlobalScope* createWorkerGlobalScope(std::unique_ptr<WorkerThreadStartupData>) override;
|
| +
|
| +private:
|
| + IsolatedWorkerThread(PassRefPtr<WorkerLoaderProxy>, WorkerReportingProxy&);
|
| + std::unique_ptr<WorkerBackingThread> m_workerBackingThread;
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif // IsolatedWorkerThread_h
|
|
|