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

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

Issue 1075603003: workers: Move core worker functionality into InProcessWorkerBase. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 8 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/Worker.cpp ('k') | Source/core/workers/WorkerMessagingProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/workers/WorkerMessagingProxy.h
diff --git a/Source/core/workers/WorkerMessagingProxy.h b/Source/core/workers/WorkerMessagingProxy.h
index 74f041302aec223ebd779f536abb9dd62c184153..9525e890de5f97cc1e136281419a2658937c5b20 100644
--- a/Source/core/workers/WorkerMessagingProxy.h
+++ b/Source/core/workers/WorkerMessagingProxy.h
@@ -43,7 +43,7 @@ namespace blink {
class WorkerObjectProxy;
class WorkerThread;
class ExecutionContext;
-class Worker;
+class InProcessWorkerBase;
class WorkerClients;
class WorkerInspectorProxy;
@@ -51,10 +51,7 @@ class CORE_EXPORT WorkerMessagingProxy
: public WorkerGlobalScopeProxy
, private WorkerLoaderProxyProvider {
WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy);
- WTF_MAKE_FAST_ALLOCATED(WorkerMessagingProxy);
public:
- WorkerMessagingProxy(Worker*, PassOwnPtrWillBeRawPtr<WorkerClients>);
-
// Implementations of WorkerGlobalScopeProxy.
// (Only use these methods in the worker object thread.)
virtual void startWorkerGlobalScope(const KURL& scriptURL, const String& userAgent, const String& sourceCode, WorkerThreadStartMode) override;
@@ -79,9 +76,10 @@ public:
void workerThreadCreated(PassRefPtr<WorkerThread>);
protected:
+ WorkerMessagingProxy(InProcessWorkerBase*, PassOwnPtrWillBeRawPtr<WorkerClients>);
virtual ~WorkerMessagingProxy();
- virtual PassRefPtr<WorkerThread> createWorkerThread(double originTime, PassOwnPtr<WorkerThreadStartupData>);
+ virtual PassRefPtr<WorkerThread> createWorkerThread(double originTime, PassOwnPtr<WorkerThreadStartupData>) = 0;
PassRefPtr<WorkerLoaderProxy> loaderProxy() { return m_loaderProxy; }
WorkerObjectProxy& workerObjectProxy() { return *m_workerObjectProxy.get(); }
@@ -98,7 +96,7 @@ private:
RefPtrWillBePersistent<ExecutionContext> m_executionContext;
OwnPtr<WorkerObjectProxy> m_workerObjectProxy;
- Worker* m_workerObject;
+ InProcessWorkerBase* m_workerObject;
bool m_mayBeDestroyed;
RefPtr<WorkerThread> m_workerThread;
« no previous file with comments | « Source/core/workers/Worker.cpp ('k') | Source/core/workers/WorkerMessagingProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698