OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. | 2 * Copyright (C) 2008 Apple Inc. All Rights Reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 | 109 |
110 void initialize(); | 110 void initialize(); |
111 void cleanup(); | 111 void cleanup(); |
112 void idleHandler(); | 112 void idleHandler(); |
113 void postDelayedTask(PassOwnPtr<ExecutionContextTask>, long long delayMs
); | 113 void postDelayedTask(PassOwnPtr<ExecutionContextTask>, long long delayMs
); |
114 | 114 |
115 bool m_terminated; | 115 bool m_terminated; |
116 OwnPtr<WorkerSharedTimer> m_sharedTimer; | 116 OwnPtr<WorkerSharedTimer> m_sharedTimer; |
117 MessageQueue<WorkerThreadTask> m_debuggerMessageQueue; | 117 MessageQueue<WorkerThreadTask> m_debuggerMessageQueue; |
118 OwnPtr<PendingGCRunner> m_pendingGCRunner; | 118 OwnPtr<PendingGCRunner> m_pendingGCRunner; |
| 119 OwnPtr<WebThread::TaskObserver> m_microtaskRunner; |
119 OwnPtr<MessageLoopInterruptor> m_messageLoopInterruptor; | 120 OwnPtr<MessageLoopInterruptor> m_messageLoopInterruptor; |
120 | 121 |
121 WorkerLoaderProxy& m_workerLoaderProxy; | 122 WorkerLoaderProxy& m_workerLoaderProxy; |
122 WorkerReportingProxy& m_workerReportingProxy; | 123 WorkerReportingProxy& m_workerReportingProxy; |
123 | 124 |
124 RefPtrWillBePersistent<WorkerInspectorController> m_workerInspectorContr
oller; | 125 RefPtrWillBePersistent<WorkerInspectorController> m_workerInspectorContr
oller; |
125 Mutex m_workerInspectorControllerMutex; | 126 Mutex m_workerInspectorControllerMutex; |
126 | 127 |
127 Mutex m_threadCreationMutex; | 128 Mutex m_threadCreationMutex; |
128 RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope; | 129 RefPtrWillBePersistent<WorkerGlobalScope> m_workerGlobalScope; |
129 OwnPtrWillBePersistent<WorkerThreadStartupData> m_startupData; | 130 OwnPtrWillBePersistent<WorkerThreadStartupData> m_startupData; |
130 | 131 |
131 // Used to signal thread shutdown. | 132 // Used to signal thread shutdown. |
132 OwnPtr<blink::WebWaitableEvent> m_shutdownEvent; | 133 OwnPtr<blink::WebWaitableEvent> m_shutdownEvent; |
133 | 134 |
134 // FIXME: This has to be last because of crbug.com/401397 - the | 135 // FIXME: This has to be last because of crbug.com/401397 - the |
135 // WorkerThread might get deleted before it had a chance to properly | 136 // WorkerThread might get deleted before it had a chance to properly |
136 // shut down. By deleting the WebThread first, we can guarantee that | 137 // shut down. By deleting the WebThread first, we can guarantee that |
137 // no pending tasks on the thread might want to access any of the other | 138 // no pending tasks on the thread might want to access any of the other |
138 // members during the WorkerThread's destruction. | 139 // members during the WorkerThread's destruction. |
139 OwnPtr<blink::WebThread> m_thread; | 140 OwnPtr<blink::WebThread> m_thread; |
140 }; | 141 }; |
141 | 142 |
142 } // namespace blink | 143 } // namespace blink |
143 | 144 |
144 #endif // WorkerThread_h | 145 #endif // WorkerThread_h |
OLD | NEW |