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

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

Issue 491053004: Expose Web Animations API to Web Workers (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Exposing the Web Animations API to Web Workers Created 6 years, 4 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
Index: Source/core/workers/WorkerMessagingProxy.h
diff --git a/Source/core/workers/WorkerMessagingProxy.h b/Source/core/workers/WorkerMessagingProxy.h
index 0babd10fe7b66c128dde2f0886db8ebd75513892..d82a8a2b1d52ff1e122969367614dca3f93f851b 100644
--- a/Source/core/workers/WorkerMessagingProxy.h
+++ b/Source/core/workers/WorkerMessagingProxy.h
@@ -28,6 +28,8 @@
#define WorkerMessagingProxy_h
#include "core/dom/ExecutionContext.h"
+#include "core/workers/DedicatedWorkerThread.h"
+#include "core/workers/WorkerGlobalScope.h"
#include "core/workers/WorkerGlobalScopeProxy.h"
#include "core/workers/WorkerLoaderProxy.h"
#include "wtf/Forward.h"
@@ -40,7 +42,6 @@
namespace blink {
class WorkerObjectProxy;
-class DedicatedWorkerThread;
class ExecutionContext;
class Worker;
class WorkerClients;
@@ -79,19 +80,17 @@ public:
virtual bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) OVERRIDE;
void workerThreadCreated(PassRefPtr<DedicatedWorkerThread>);
-
+ WorkerGlobalScope* extractWorkerGlobalScope();
protected:
virtual ~WorkerMessagingProxy();
private:
static void workerObjectDestroyedInternal(ExecutionContext*, WorkerMessagingProxy*);
-
RefPtrWillBePersistent<ExecutionContext> m_executionContext;
OwnPtr<WorkerObjectProxy> m_workerObjectProxy;
Worker* m_workerObject;
bool m_mayBeDestroyed;
RefPtr<DedicatedWorkerThread> 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.

Powered by Google App Engine
This is Rietveld 408576698