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

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

Issue 1217773007: [DevTools] Replace reportCompiledScripts with explicit [get]compiledScripts. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: getCompiledScripts Created 5 years, 5 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/V8Debugger.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) 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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void WorkerThreadDebugger::setContextDebugData(v8::Local<v8::Context> context) 63 void WorkerThreadDebugger::setContextDebugData(v8::Local<v8::Context> context)
64 { 64 {
65 V8Debugger::setContextDebugData(context, workerContextDebugId); 65 V8Debugger::setContextDebugData(context, workerContextDebugId);
66 } 66 }
67 67
68 void WorkerThreadDebugger::addListener(ScriptDebugListener* listener) 68 void WorkerThreadDebugger::addListener(ScriptDebugListener* listener)
69 { 69 {
70 ASSERT(!m_listener); 70 ASSERT(!m_listener);
71 debugger()->enable(); 71 debugger()->enable();
72 m_listener = listener; 72 m_listener = listener;
73 debugger()->reportCompiledScripts(workerContextDebugId, listener); 73 Vector<ScriptDebugListener::ParsedScript> compiledScripts;
74 debugger()->getCompiledScripts(workerContextDebugId, compiledScripts);
75 for (size_t i = 0; i < compiledScripts.size(); i++)
76 listener->didParseSource(compiledScripts[i]);
74 } 77 }
75 78
76 void WorkerThreadDebugger::removeListener(ScriptDebugListener* listener) 79 void WorkerThreadDebugger::removeListener(ScriptDebugListener* listener)
77 { 80 {
78 ASSERT(m_listener == listener); 81 ASSERT(m_listener == listener);
79 debugger()->continueProgram(); 82 debugger()->continueProgram();
80 m_listener = 0; 83 m_listener = 0;
81 debugger()->disable(); 84 debugger()->disable();
82 } 85 }
83 86
(...skipping 17 matching lines...) Expand all
101 if (m_listener) 104 if (m_listener)
102 m_listener->didContinue(); 105 m_listener->didContinue();
103 } 106 }
104 107
105 void WorkerThreadDebugger::quitMessageLoopOnPause() 108 void WorkerThreadDebugger::quitMessageLoopOnPause()
106 { 109 {
107 // Nothing to do here in case of workers since runMessageLoopOnPause will ch eck for paused state after each debugger command. 110 // Nothing to do here in case of workers since runMessageLoopOnPause will ch eck for paused state after each debugger command.
108 } 111 }
109 112
110 } // namespace blink 113 } // namespace blink
OLDNEW
« no previous file with comments | « Source/core/inspector/V8Debugger.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698