| 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 class ScriptDebugServer; | 59 class ScriptDebugServer; |
| 60 class ScriptValue; | 60 class ScriptValue; |
| 61 | 61 |
| 62 typedef String ErrorString; | 62 typedef String ErrorString; |
| 63 | 63 |
| 64 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent>
, public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommand
Handler { | 64 class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent>
, public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommand
Handler { |
| 65 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; | 65 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; |
| 66 public: | 66 public: |
| 67 enum BreakpointSource { | 67 enum BreakpointSource { |
| 68 UserBreakpointSource, | 68 UserBreakpointSource, |
| 69 DebugCommandBreakpointSource | 69 DebugCommandBreakpointSource, |
| 70 MonitorCommandBreakpointSource |
| 70 }; | 71 }; |
| 71 | 72 |
| 72 static const char* backtraceObjectGroup; | 73 static const char* backtraceObjectGroup; |
| 73 | 74 |
| 74 virtual ~InspectorDebuggerAgent(); | 75 virtual ~InspectorDebuggerAgent(); |
| 75 | 76 |
| 76 virtual void canSetScriptSource(ErrorString*, bool* result) { *result = true
; } | 77 virtual void canSetScriptSource(ErrorString*, bool* result) { *result = true
; } |
| 77 | 78 |
| 78 virtual void setFrontend(InspectorFrontend*); | 79 virtual void setFrontend(InspectorFrontend*); |
| 79 virtual void clearFrontend(); | 80 virtual void clearFrontend(); |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 virtual void debuggerWasDisabled() = 0; | 135 virtual void debuggerWasDisabled() = 0; |
| 135 virtual void stepInto() = 0; | 136 virtual void stepInto() = 0; |
| 136 virtual void didPause() = 0; | 137 virtual void didPause() = 0; |
| 137 }; | 138 }; |
| 138 void setListener(Listener* listener) { m_listener = listener; } | 139 void setListener(Listener* listener) { m_listener = listener; } |
| 139 | 140 |
| 140 virtual ScriptDebugServer& scriptDebugServer() = 0; | 141 virtual ScriptDebugServer& scriptDebugServer() = 0; |
| 141 | 142 |
| 142 virtual void reportMemoryUsage(MemoryObjectInfo*) const; | 143 virtual void reportMemoryUsage(MemoryObjectInfo*) const; |
| 143 | 144 |
| 144 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber,
BreakpointSource); | 145 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber,
BreakpointSource, const String& condition = String()); |
| 145 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb
er, BreakpointSource); | 146 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb
er, BreakpointSource); |
| 146 | 147 |
| 147 protected: | 148 protected: |
| 148 InspectorDebuggerAgent(InstrumentingAgents*, InspectorCompositeState*, Injec
tedScriptManager*); | 149 InspectorDebuggerAgent(InstrumentingAgents*, InspectorCompositeState*, Injec
tedScriptManager*); |
| 149 | 150 |
| 150 virtual void startListeningScriptDebugServer() = 0; | 151 virtual void startListeningScriptDebugServer() = 0; |
| 151 virtual void stopListeningScriptDebugServer() = 0; | 152 virtual void stopListeningScriptDebugServer() = 0; |
| 152 virtual void muteConsole() = 0; | 153 virtual void muteConsole() = 0; |
| 153 virtual void unmuteConsole() = 0; | 154 virtual void unmuteConsole() = 0; |
| 154 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } | 155 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 InspectorFrontend::Debugger::Reason::Enum m_breakReason; | 198 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
| 198 RefPtr<InspectorObject> m_breakAuxData; | 199 RefPtr<InspectorObject> m_breakAuxData; |
| 199 bool m_javaScriptPauseScheduled; | 200 bool m_javaScriptPauseScheduled; |
| 200 Listener* m_listener; | 201 Listener* m_listener; |
| 201 }; | 202 }; |
| 202 | 203 |
| 203 } // namespace WebCore | 204 } // namespace WebCore |
| 204 | 205 |
| 205 | 206 |
| 206 #endif // !defined(InspectorDebuggerAgent_h) | 207 #endif // !defined(InspectorDebuggerAgent_h) |
| OLD | NEW |