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

Side by Side Diff: Source/core/workers/WorkerThread.cpp

Issue 1164423007: Make inspector-protocol/debugger/debugger-step-into-dedicated-worker.html not timeout (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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/WorkerInspectorController.cpp ('k') | no next file » | 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) 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 218 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 229
230 // The corresponding call to stopRunLoop() is in ~WorkerScriptController(). 230 // The corresponding call to stopRunLoop() is in ~WorkerScriptController().
231 didStartRunLoop(); 231 didStartRunLoop();
232 232
233 // Notify proxy that a new WorkerGlobalScope has been created and started. 233 // Notify proxy that a new WorkerGlobalScope has been created and started.
234 m_workerReportingProxy.workerGlobalScopeStarted(m_workerGlobalScope.get()); 234 m_workerReportingProxy.workerGlobalScopeStarted(m_workerGlobalScope.get());
235 235
236 WorkerScriptController* script = m_workerGlobalScope->script(); 236 WorkerScriptController* script = m_workerGlobalScope->script();
237 if (!script->isExecutionForbidden()) 237 if (!script->isExecutionForbidden())
238 script->initializeContextIfNeeded(); 238 script->initializeContextIfNeeded();
239 if (startMode == PauseWorkerGlobalScopeOnStart) 239 m_workerGlobalScope->workerInspectorController()->workerContextInitialized(s tartMode == PauseWorkerGlobalScopeOnStart);
240 m_workerGlobalScope->workerInspectorController()->pauseOnStart();
241 240
242 OwnPtr<CachedMetadataHandler> handler(workerGlobalScope()->createWorkerScrip tCachedMetadataHandler(scriptURL, cachedMetaData.get())); 241 OwnPtr<CachedMetadataHandler> handler(workerGlobalScope()->createWorkerScrip tCachedMetadataHandler(scriptURL, cachedMetaData.get()));
243 bool success = script->evaluate(ScriptSourceCode(sourceCode, scriptURL), nul lptr, handler.get(), v8CacheOptions); 242 bool success = script->evaluate(ScriptSourceCode(sourceCode, scriptURL), nul lptr, handler.get(), v8CacheOptions);
244 m_workerGlobalScope->didEvaluateWorkerScript(); 243 m_workerGlobalScope->didEvaluateWorkerScript();
245 m_workerReportingProxy.didEvaluateWorkerScript(success); 244 m_workerReportingProxy.didEvaluateWorkerScript(success);
246 245
247 postInitialize(); 246 postInitialize();
248 247
249 m_webScheduler->postIdleTaskAfterWakeup(FROM_HERE, WTF::bind<double>(&Worker Thread::performIdleWork, this)); 248 m_webScheduler->postIdleTaskAfterWakeup(FROM_HERE, WTF::bind<double>(&Worker Thread::performIdleWork, this));
250 } 249 }
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
478 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get()); 477 InspectorInstrumentation::didLeaveNestedRunLoop(m_workerGlobalScope.get());
479 } 478 }
480 479
481 void WorkerThread::setWorkerInspectorController(WorkerInspectorController* worke rInspectorController) 480 void WorkerThread::setWorkerInspectorController(WorkerInspectorController* worke rInspectorController)
482 { 481 {
483 MutexLocker locker(m_workerInspectorControllerMutex); 482 MutexLocker locker(m_workerInspectorControllerMutex);
484 m_workerInspectorController = workerInspectorController; 483 m_workerInspectorController = workerInspectorController;
485 } 484 }
486 485
487 } // namespace blink 486 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/WorkerInspectorController.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698