OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2011 Google Inc. All rights reserved. | 2 * Copyright (C) 2011 Google 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 are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 | 196 |
197 bool WorkerInspectorController::isRunRequired() | 197 bool WorkerInspectorController::isRunRequired() |
198 { | 198 { |
199 return m_paused; | 199 return m_paused; |
200 } | 200 } |
201 | 201 |
202 void WorkerInspectorController::pauseOnStart() | 202 void WorkerInspectorController::pauseOnStart() |
203 { | 203 { |
204 m_paused = true; | 204 m_paused = true; |
205 MessageQueueWaitResult result; | 205 MessageQueueWaitResult result; |
206 m_workerGlobalScope->thread()->willEnterNestedLoop(); | 206 InspectorInstrumentation::willEnterNestedRunLoop(m_workerGlobalScope.get()); |
207 do { | 207 do { |
208 result = m_workerGlobalScope->thread()->runDebuggerTask(); | 208 result = m_workerGlobalScope->thread()->runDebuggerTask(); |
209 // Keep waiting until execution is resumed. | 209 // Keep waiting until execution is resumed. |
210 } while (result == MessageQueueMessageReceived && m_paused); | 210 } while (result == MessageQueueMessageReceived && m_paused); |
211 m_workerGlobalScope->thread()->didLeaveNestedLoop(); | 211 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get()); |
212 } | 212 } |
213 | 213 |
214 DEFINE_TRACE(WorkerInspectorController) | 214 DEFINE_TRACE(WorkerInspectorController) |
215 { | 215 { |
216 visitor->trace(m_workerGlobalScope); | 216 visitor->trace(m_workerGlobalScope); |
217 visitor->trace(m_state); | 217 visitor->trace(m_state); |
218 visitor->trace(m_instrumentingAgents); | 218 visitor->trace(m_instrumentingAgents); |
219 visitor->trace(m_injectedScriptManager); | 219 visitor->trace(m_injectedScriptManager); |
220 visitor->trace(m_debugServer); | 220 visitor->trace(m_debugServer); |
221 visitor->trace(m_backendDispatcher); | 221 visitor->trace(m_backendDispatcher); |
222 visitor->trace(m_agents); | 222 visitor->trace(m_agents); |
223 visitor->trace(m_workerDebuggerAgent); | 223 visitor->trace(m_workerDebuggerAgent); |
224 visitor->trace(m_asyncCallTracker); | 224 visitor->trace(m_asyncCallTracker); |
225 visitor->trace(m_workerRuntimeAgent); | 225 visitor->trace(m_workerRuntimeAgent); |
226 } | 226 } |
227 | 227 |
228 } // namespace blink | 228 } // namespace blink |
OLD | NEW |