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

Unified Diff: Source/core/workers/UIWorker.h

Issue 474683003: Not for review - Rebase of crrev.com/62833003 Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 6 years, 2 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
« no previous file with comments | « Source/core/workers/TeleportContext.idl ('k') | Source/core/workers/UIWorker.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/core/workers/TeleportContext.idl ('k') | Source/core/workers/UIWorker.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698