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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h

Issue 2639153004: Worker: Stop accessing ExecutionContext passed by ExecutionContextTask (Closed)
Patch Set: address review comments Created 3 years, 11 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 | « no previous file | third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ac660802ec40c1ab2fe7e2f614ca18e9670578c0..26941b77e3de8288cef870f88305b13fe40f089c 100644
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.h
@@ -98,8 +98,17 @@ class CORE_EXPORT InProcessWorkerMessagingProxy
WeakPersistent<InProcessWorkerBase> m_workerObject;
Persistent<WorkerClients> m_workerClients;
+ struct QueuedTask {
+ RefPtr<SerializedScriptValue> message;
+ std::unique_ptr<MessagePortChannelArray> channels;
+
+ QueuedTask(RefPtr<SerializedScriptValue> message,
+ std::unique_ptr<MessagePortChannelArray> channels);
+ ~QueuedTask();
+ };
+
// Tasks are queued here until there's a thread object created.
- Vector<std::unique_ptr<ExecutionContextTask>> m_queuedEarlyTasks;
+ Vector<std::unique_ptr<QueuedTask>> m_queuedEarlyTasks;
// Unconfirmed messages from the parent context thread to the worker thread.
// When this is greater than 0, |m_workerGlobalScopeHasPendingActivity| should
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/workers/InProcessWorkerMessagingProxy.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698