OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2010 Apple Inc. All rights reserved. | 2 * Copyright (C) 2010 Apple Inc. All rights reserved. |
3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. | 3 * Copyright (C) 2010-2011 Google Inc. All rights reserved. |
4 * | 4 * |
5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
6 * modification, are permitted provided that the following conditions | 6 * modification, are permitted provided that the following conditions |
7 * are met: | 7 * are met: |
8 * | 8 * |
9 * 1. Redistributions of source code must retain the above copyright | 9 * 1. Redistributions of source code must retain the above copyright |
10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 140 |
141 virtual void startListeningScriptDebugServer() = 0; | 141 virtual void startListeningScriptDebugServer() = 0; |
142 virtual void stopListeningScriptDebugServer() = 0; | 142 virtual void stopListeningScriptDebugServer() = 0; |
143 virtual void muteConsole() = 0; | 143 virtual void muteConsole() = 0; |
144 virtual void unmuteConsole() = 0; | 144 virtual void unmuteConsole() = 0; |
145 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } | 145 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } |
146 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; | 146 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; |
147 | 147 |
148 virtual void enable(); | 148 virtual void enable(); |
149 virtual void disable(); | 149 virtual void disable(); |
150 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr
iptValue& exception); | 150 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr
iptValue& exception, const Vector<String>& hitBreakpoints); |
151 virtual void didContinue(); | 151 virtual void didContinue(); |
152 void reset(); | 152 void reset(); |
153 | 153 |
154 private: | 154 private: |
155 void cancelPauseOnNextStatement(); | 155 void cancelPauseOnNextStatement(); |
156 void addMessageToConsole(MessageSource, MessageType); | 156 void addMessageToConsole(MessageSource, MessageType); |
157 | 157 |
158 bool enabled(); | 158 bool enabled(); |
159 | 159 |
160 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); | 160 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); |
161 | 161 |
162 virtual void didParseSource(const String& scriptId, const Script&); | 162 virtual void didParseSource(const String& scriptId, const Script&); |
163 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage); | 163 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage); |
164 | 164 |
165 void setPauseOnExceptionsImpl(ErrorString*, int); | 165 void setPauseOnExceptionsImpl(ErrorString*, int); |
166 | 166 |
167 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&); | 167 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&); |
168 void clear(); | 168 void clear(); |
169 bool assertPaused(ErrorString*); | 169 bool assertPaused(ErrorString*); |
170 void clearBreakDetails(); | 170 void clearBreakDetails(); |
171 | 171 |
172 String sourceMapURLForScript(const Script&); | 172 String sourceMapURLForScript(const Script&); |
173 | 173 |
174 typedef HashMap<String, Script> ScriptsMap; | 174 typedef HashMap<String, Script> ScriptsMap; |
175 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint
IdsMap; | 175 typedef HashMap<String, Vector<String> > BreakpointIdToDebugServerBreakpoint
IdsMap; |
| 176 typedef HashMap<String, String> DebugServerBreakpointIdToBreakpointIdMap; |
176 | 177 |
177 InjectedScriptManager* m_injectedScriptManager; | 178 InjectedScriptManager* m_injectedScriptManager; |
178 InspectorFrontend::Debugger* m_frontend; | 179 InspectorFrontend::Debugger* m_frontend; |
179 ScriptState* m_pausedScriptState; | 180 ScriptState* m_pausedScriptState; |
180 ScriptValue m_currentCallStack; | 181 ScriptValue m_currentCallStack; |
181 ScriptsMap m_scripts; | 182 ScriptsMap m_scripts; |
182 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo
intIds; | 183 BreakpointIdToDebugServerBreakpointIdsMap m_breakpointIdToDebugServerBreakpo
intIds; |
| 184 DebugServerBreakpointIdToBreakpointIdMap m_serverBreakpointIdToBreakpointId; |
183 String m_continueToLocationBreakpointId; | 185 String m_continueToLocationBreakpointId; |
184 InspectorFrontend::Debugger::Reason::Enum m_breakReason; | 186 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
185 RefPtr<InspectorObject> m_breakAuxData; | 187 RefPtr<InspectorObject> m_breakAuxData; |
186 bool m_javaScriptPauseScheduled; | 188 bool m_javaScriptPauseScheduled; |
187 Listener* m_listener; | 189 Listener* m_listener; |
188 }; | 190 }; |
189 | 191 |
190 } // namespace WebCore | 192 } // namespace WebCore |
191 | 193 |
192 | 194 |
193 #endif // !defined(InspectorDebuggerAgent_h) | 195 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |