Index: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h |
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h |
index c80aeaaf9ce49c086cf03efa870428a71e3ac3de..cc80c354797cb28d1f88ae6a3cc0ac901b4ffce8 100644 |
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h |
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h |
@@ -65,8 +65,7 @@ public: |
void workerObjectDestroyed() override; |
// These methods come from worker context thread via |
- // InProcessWorkerObjectProxy and are called on the worker object thread |
- // (e.g. main thread). |
+ // InProcessWorkerObjectProxy and are called on the worker object thread. |
void postMessageToWorkerObject(PassRefPtr<SerializedScriptValue>, PassOwnPtr<MessagePortChannelArray>); |
void reportException(const String& errorMessage, int lineNumber, int columnNumber, const String& sourceURL, int exceptionId); |
void reportConsoleMessage(MessageSource, MessageLevel, const String& message, int lineNumber, const String& sourceURL); |
@@ -74,7 +73,6 @@ public: |
void postWorkerConsoleAgentEnabled(); |
void confirmMessageFromWorkerObject(bool hasPendingActivity); |
void reportPendingActivity(bool hasPendingActivity); |
- void workerGlobalScopeClosed(); |
void workerThreadTerminated(); |
void workerThreadCreated(); |
@@ -99,18 +97,27 @@ private: |
void postTaskToLoader(PassOwnPtr<ExecutionContextTask>) override; |
bool postTaskToWorkerGlobalScope(PassOwnPtr<ExecutionContextTask>) override; |
+ // Returns true if this is called on the worker object thread. |
+ bool isWorkerObjectThread() const; |
kinuko
2016/04/25 06:51:27
It's true that we use the term 'worker object thre
nhiroki
2016/04/26 07:01:03
ParentContextThread sounds better. Replaced them.
|
+ |
Persistent<ExecutionContext> m_executionContext; |
OwnPtr<InProcessWorkerObjectProxy> m_workerObjectProxy; |
WeakPersistent<InProcessWorkerBase> m_workerObject; |
bool m_mayBeDestroyed; |
OwnPtr<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. |
+ // Unconfirmed messages from worker object to worker thread. |
+ unsigned m_unconfirmedMessageCount; |
+ |
+ // The latest confirmation from worker thread reported that it was still |
+ // active. |
+ bool m_workerThreadHadPendingActivity; |
bool m_askedToTerminate; |
- Vector<OwnPtr<ExecutionContextTask>> m_queuedEarlyTasks; // Tasks are queued here until there's a thread object created. |
+ // Tasks are queued here until there's a thread object created. |
+ Vector<OwnPtr<ExecutionContextTask>> m_queuedEarlyTasks; |
+ |
Persistent<WorkerInspectorProxy> m_workerInspectorProxy; |
Persistent<WorkerClients> m_workerClients; |