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

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

Issue 1018863002: compositor-worker: Introduce CompositorWorker. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 9 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 d840b7bc7859905d6b7fe8dd5cbf85936153b242..e95389cbef92e33d59bc248d907f09a81a1065bd 100644
--- a/Source/core/workers/WorkerMessagingProxy.h
+++ b/Source/core/workers/WorkerMessagingProxy.h
@@ -40,13 +40,13 @@
namespace blink {
class WorkerObjectProxy;
-class DedicatedWorkerThread;
+class WorkerThread;
class ExecutionContext;
class Worker;
class WorkerClients;
class WorkerInspectorProxy;
-class WorkerMessagingProxy final
+class WorkerMessagingProxy
: public WorkerGlobalScopeProxy
, private WorkerLoaderProxyProvider {
WTF_MAKE_NONCOPYABLE(WorkerMessagingProxy);
@@ -75,11 +75,16 @@ public:
void workerGlobalScopeClosed();
void workerThreadTerminated();
- void workerThreadCreated(PassRefPtr<DedicatedWorkerThread>);
+ void workerThreadCreated(PassRefPtr<WorkerThread>);
protected:
virtual ~WorkerMessagingProxy();
+ virtual PassRefPtr<WorkerThread> createWorkerThread(double originTime, PassOwnPtrWillBeRawPtr<WorkerThreadStartupData>);
+
+ PassRefPtr<WorkerLoaderProxy> loaderProxy() { return m_loaderProxy; }
+ WorkerObjectProxy& workerObjectProxy() { return *m_workerObjectProxy.get(); }
+
private:
static void workerObjectDestroyedInternal(ExecutionContext*, WorkerMessagingProxy*);
void terminateInternally();
@@ -94,7 +99,7 @@ private:
OwnPtr<WorkerObjectProxy> m_workerObjectProxy;
Worker* m_workerObject;
bool m_mayBeDestroyed;
- RefPtr<DedicatedWorkerThread> m_workerThread;
+ RefPtr<WorkerThread> m_workerThread;
unsigned m_unconfirmedMessageCount; // Unconfirmed messages from worker object to worker thread.
bool m_workerThreadHadPendingActivity; // The latest confirmation from worker thread reported that it was still active.
« 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