| 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 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 bool isCurrentThread(); | 120 bool isCurrentThread(); |
| 121 | 121 |
| 122 WorkerLoaderProxy* workerLoaderProxy() const | 122 WorkerLoaderProxy* workerLoaderProxy() const |
| 123 { | 123 { |
| 124 RELEASE_ASSERT(m_workerLoaderProxy); | 124 RELEASE_ASSERT(m_workerLoaderProxy); |
| 125 return m_workerLoaderProxy.get(); | 125 return m_workerLoaderProxy.get(); |
| 126 } | 126 } |
| 127 | 127 |
| 128 WorkerReportingProxy& workerReportingProxy() const { return m_workerReportin
gProxy; } | 128 WorkerReportingProxy& workerReportingProxy() const { return m_workerReportin
gProxy; } |
| 129 | 129 |
| 130 void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>
); | 130 void postTask(const WebTraceLocation&, std::unique_ptr<ExecutionContextTask>
, bool isInstrumented = false); |
| 131 void appendDebuggerTask(std::unique_ptr<CrossThreadClosure>); | 131 void appendDebuggerTask(std::unique_ptr<CrossThreadClosure>); |
| 132 | 132 |
| 133 // Runs only debugger tasks while paused in debugger. | 133 // Runs only debugger tasks while paused in debugger. |
| 134 void startRunningDebuggerTasksOnPauseOnWorkerThread(); | 134 void startRunningDebuggerTasksOnPauseOnWorkerThread(); |
| 135 void stopRunningDebuggerTasksOnPauseOnWorkerThread(); | 135 void stopRunningDebuggerTasksOnPauseOnWorkerThread(); |
| 136 | 136 |
| 137 // Can be called only on the worker thread, WorkerGlobalScope is not thread | 137 // Can be called only on the worker thread, WorkerGlobalScope is not thread |
| 138 // safe. | 138 // safe. |
| 139 WorkerGlobalScope* workerGlobalScope(); | 139 WorkerGlobalScope* workerGlobalScope(); |
| 140 | 140 |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // Scheduled when termination starts with TerminationMode::Force, and | 232 // Scheduled when termination starts with TerminationMode::Force, and |
| 233 // cancelled when the worker thread is gracefully shut down. | 233 // cancelled when the worker thread is gracefully shut down. |
| 234 std::unique_ptr<ForceTerminationTask> m_scheduledForceTerminationTask; | 234 std::unique_ptr<ForceTerminationTask> m_scheduledForceTerminationTask; |
| 235 | 235 |
| 236 Persistent<WorkerThreadLifecycleContext> m_workerThreadLifecycleContext; | 236 Persistent<WorkerThreadLifecycleContext> m_workerThreadLifecycleContext; |
| 237 }; | 237 }; |
| 238 | 238 |
| 239 } // namespace blink | 239 } // namespace blink |
| 240 | 240 |
| 241 #endif // WorkerThread_h | 241 #endif // WorkerThread_h |
| OLD | NEW |