Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(125)

Side by Side Diff: Source/core/inspector/WorkerInspectorController.cpp

Issue 1131183003: WorkerThread: Remove willEnterNestedLoop() and didLeaveNestedLoop(). Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: . Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/WorkerDebuggerAgent.cpp ('k') | Source/core/workers/WorkerThread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « Source/core/inspector/WorkerDebuggerAgent.cpp ('k') | Source/core/workers/WorkerThread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698