| 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 139 PassOwnPtr<CrossThreadClosure> createWorkerThreadTask(PassOwnPtr<ExecutionCo
ntextTask>, bool isInstrumented); | 139 PassOwnPtr<CrossThreadClosure> createWorkerThreadTask(PassOwnPtr<ExecutionCo
ntextTask>, bool isInstrumented); |
| 140 | 140 |
| 141 // Called on the main thread. | 141 // Called on the main thread. |
| 142 void terminateInternal(); | 142 void terminateInternal(); |
| 143 | 143 |
| 144 // Called on the worker thread. | 144 // Called on the worker thread. |
| 145 void initialize(PassOwnPtr<WorkerThreadStartupData>); | 145 void initialize(PassOwnPtr<WorkerThreadStartupData>); |
| 146 void shutdown(); | 146 void shutdown(); |
| 147 void performTask(PassOwnPtr<ExecutionContextTask>, bool isInstrumented); | 147 void performTask(PassOwnPtr<ExecutionContextTask>, bool isInstrumented); |
| 148 void performShutdownTask(); | 148 void performShutdownTask(); |
| 149 void postDelayedTask(const WebTraceLocation&, PassOwnPtr<ExecutionContextTas
k>, long long delayMs); | |
| 150 void runDebuggerTask(PassOwnPtr<CrossThreadClosure>); | 149 void runDebuggerTask(PassOwnPtr<CrossThreadClosure>); |
| 151 void runDebuggerTaskDontWait(); | 150 void runDebuggerTaskDontWait(); |
| 152 | 151 |
| 153 bool m_started; | 152 bool m_started; |
| 154 bool m_terminated; | 153 bool m_terminated; |
| 155 bool m_shutdown; | 154 bool m_shutdown; |
| 156 bool m_pausedInDebugger; | 155 bool m_pausedInDebugger; |
| 157 bool m_runningDebuggerTask; | 156 bool m_runningDebuggerTask; |
| 158 bool m_shouldTerminateV8Execution; | 157 bool m_shouldTerminateV8Execution; |
| 159 OwnPtr<InspectorTaskRunner> m_inspectorTaskRunner; | 158 OwnPtr<InspectorTaskRunner> m_inspectorTaskRunner; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 173 // Used to signal thread shutdown. | 172 // Used to signal thread shutdown. |
| 174 OwnPtr<WaitableEvent> m_shutdownEvent; | 173 OwnPtr<WaitableEvent> m_shutdownEvent; |
| 175 | 174 |
| 176 // Used to signal thread termination. | 175 // Used to signal thread termination. |
| 177 OwnPtr<WaitableEvent> m_terminationEvent; | 176 OwnPtr<WaitableEvent> m_terminationEvent; |
| 178 }; | 177 }; |
| 179 | 178 |
| 180 } // namespace blink | 179 } // namespace blink |
| 181 | 180 |
| 182 #endif // WorkerThread_h | 181 #endif // WorkerThread_h |
| OLD | NEW |