Chromium Code Reviews| Index: Source/core/workers/WorkerThread.h |
| diff --git a/Source/core/workers/WorkerThread.h b/Source/core/workers/WorkerThread.h |
| index a58d1e7210f8386f38f266b3ee47b6a08cdb1191..72325fca3050b44872b25fb2c56130445e00d5ed 100644 |
| --- a/Source/core/workers/WorkerThread.h |
| +++ b/Source/core/workers/WorkerThread.h |
| @@ -46,6 +46,7 @@ namespace WebCore { |
| class WorkerGlobalScope; |
| class WorkerLoaderProxy; |
| class WorkerReportingProxy; |
| + class WorkerSettings; |
| struct WorkerThreadStartupData; |
| enum WorkerThreadStartMode { DontPauseWorkerGlobalScopeOnStart, PauseWorkerGlobalScopeOnStart }; |
| @@ -73,8 +74,10 @@ namespace WebCore { |
| NotificationClient* getNotificationClient() { return m_notificationClient; } |
| void setNotificationClient(NotificationClient* client) { m_notificationClient = client; } |
| + WorkerSettings* settings() { return m_settings.get(); } |
| + |
| protected: |
| - WorkerThread(WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtr<WorkerThreadStartupData>); |
| + WorkerThread(WorkerLoaderProxy&, WorkerReportingProxy&, PassOwnPtr<WorkerSettings>, PassOwnPtr<WorkerThreadStartupData>); |
| // Factory method for creating a new worker context for the thread. |
| virtual PassRefPtr<WorkerGlobalScope> createWorkerGlobalScope(PassOwnPtr<WorkerThreadStartupData>) = 0; |
| @@ -98,6 +101,8 @@ namespace WebCore { |
| RefPtr<WorkerGlobalScope> m_workerGlobalScope; |
| Mutex m_threadCreationMutex; |
| + OwnPtr<WorkerSettings> m_settings; |
|
kinuko
2014/02/28 05:23:29
Do we need to keep owning WorkerSettings here? Can
Pan
2014/03/03 09:16:52
done, thanks
|
| + |
| OwnPtr<WorkerThreadStartupData> m_startupData; |
| NotificationClient* m_notificationClient; |