| Index: Source/core/workers/UIWorker.h
|
| diff --git a/Source/core/workers/Worker.h b/Source/core/workers/UIWorker.h
|
| similarity index 67%
|
| copy from Source/core/workers/Worker.h
|
| copy to Source/core/workers/UIWorker.h
|
| index 42392a11ec021877279200768a957f06f511f61a..29a59c1c36136fa4eb1919f92965fdeb0f702318 100644
|
| --- a/Source/core/workers/Worker.h
|
| +++ b/Source/core/workers/UIWorker.h
|
| @@ -24,14 +24,15 @@
|
| *
|
| */
|
|
|
| -#ifndef Worker_h
|
| -#define Worker_h
|
| +#ifndef UIWorker_h
|
| +#define UIWorker_h
|
|
|
| #include "core/dom/ActiveDOMObject.h"
|
| #include "core/dom/MessagePort.h"
|
| #include "core/events/EventListener.h"
|
| #include "core/events/EventTarget.h"
|
| #include "core/workers/AbstractWorker.h"
|
| +#include "core/workers/Worker.h"
|
| #include "core/workers/WorkerScriptLoaderClient.h"
|
| #include "platform/heap/Handle.h"
|
| #include "wtf/Forward.h"
|
| @@ -46,36 +47,21 @@ class ExecutionContext;
|
| class WorkerGlobalScopeProxy;
|
| class WorkerScriptLoader;
|
|
|
| -class Worker final : public AbstractWorker, private WorkerScriptLoaderClient {
|
| +class UIWorker final : public Worker {
|
| DEFINE_WRAPPERTYPEINFO();
|
| public:
|
| - static PassRefPtrWillBeRawPtr<Worker> create(ExecutionContext*, const String& url, ExceptionState&);
|
| - virtual ~Worker();
|
| + static PassRefPtrWillBeRawPtr<UIWorker> create(ExecutionContext*, const String& url, ExceptionState&);
|
| + virtual ~UIWorker();
|
|
|
| virtual const AtomicString& interfaceName() const override;
|
|
|
| - void postMessage(ExecutionContext*, PassRefPtr<SerializedScriptValue> message, const MessagePortArray*, ExceptionState&);
|
| -
|
| - void terminate();
|
| -
|
| - virtual void stop() override;
|
| - virtual bool hasPendingActivity() const override;
|
| -
|
| - DEFINE_ATTRIBUTE_EVENT_LISTENER(message);
|
| -
|
| - virtual void trace(Visitor*) override;
|
| + virtual bool isUIWorker() const override { return true; }
|
|
|
| private:
|
| - explicit Worker(ExecutionContext*);
|
| -
|
| - // WorkerScriptLoaderClient callbacks
|
| - virtual void didReceiveResponse(unsigned long identifier, const ResourceResponse&) override;
|
| - virtual void notifyFinished() override;
|
| + explicit UIWorker(ExecutionContext*);
|
|
|
| - RefPtr<WorkerScriptLoader> m_scriptLoader;
|
| - WorkerGlobalScopeProxy* m_contextProxy; // The proxy outlives the worker to perform thread shutdown.
|
| };
|
|
|
| } // namespace blink
|
|
|
| -#endif // Worker_h
|
| +#endif // UIWorker_h
|
|
|