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 16 matching lines...) Expand all Loading... |
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
28 */ | 28 */ |
29 | 29 |
30 #ifndef InspectorDebuggerAgent_h | 30 #ifndef InspectorDebuggerAgent_h |
31 #define InspectorDebuggerAgent_h | 31 #define InspectorDebuggerAgent_h |
32 | 32 |
33 #include "InspectorFrontend.h" | 33 #include "InspectorFrontend.h" |
34 #include "bindings/v8/ScriptState.h" | 34 #include "bindings/v8/ScriptState.h" |
35 #include "core/inspector/ConsoleAPITypes.h" | 35 #include "core/inspector/ConsoleAPITypes.h" |
36 #include "core/inspector/InjectedScript.h" | 36 #include "core/inspector/InjectedScript.h" |
| 37 #include "core/inspector/InspectorAgent.h" |
37 #include "core/inspector/InspectorBaseAgent.h" | 38 #include "core/inspector/InspectorBaseAgent.h" |
38 #include "core/inspector/ScriptBreakpoint.h" | 39 #include "core/inspector/ScriptBreakpoint.h" |
39 #include "core/inspector/ScriptDebugListener.h" | 40 #include "core/inspector/ScriptDebugListener.h" |
40 #include "core/page/ConsoleTypes.h" | 41 #include "core/page/ConsoleTypes.h" |
41 #include "wtf/Forward.h" | 42 #include "wtf/Forward.h" |
42 #include "wtf/HashMap.h" | 43 #include "wtf/HashMap.h" |
43 #include "wtf/PassRefPtr.h" | 44 #include "wtf/PassRefPtr.h" |
44 #include "wtf/Vector.h" | 45 #include "wtf/Vector.h" |
45 #include "wtf/text/StringHash.h" | 46 #include "wtf/text/StringHash.h" |
46 | 47 |
47 namespace WebCore { | 48 namespace WebCore { |
48 | 49 |
| 50 class ConsoleMessage; |
49 class InjectedScriptManager; | 51 class InjectedScriptManager; |
50 class InspectorFrontend; | 52 class InspectorFrontend; |
51 class InspectorState; | 53 class InspectorState; |
52 class InstrumentingAgents; | 54 class InstrumentingAgents; |
53 class JSONObject; | 55 class JSONObject; |
54 class ScriptArguments; | 56 class ScriptArguments; |
55 class ScriptCallStack; | 57 class ScriptCallStack; |
56 class ScriptDebugServer; | 58 class ScriptDebugServer; |
57 class ScriptValue; | 59 class ScriptValue; |
58 | 60 |
(...skipping 15 matching lines...) Expand all Loading... |
74 virtual void canSetScriptSource(ErrorString*, bool* result) { *result = true
; } | 76 virtual void canSetScriptSource(ErrorString*, bool* result) { *result = true
; } |
75 | 77 |
76 virtual void setFrontend(InspectorFrontend*); | 78 virtual void setFrontend(InspectorFrontend*); |
77 virtual void clearFrontend(); | 79 virtual void clearFrontend(); |
78 virtual void restore(); | 80 virtual void restore(); |
79 | 81 |
80 bool isPaused(); | 82 bool isPaused(); |
81 bool runningNestedMessageLoop(); | 83 bool runningNestedMessageLoop(); |
82 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing&, PassRefPtr<ScriptCallStack>, unsigned long); | 84 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing&, PassRefPtr<ScriptCallStack>, unsigned long); |
83 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing&, ScriptState*, PassRefPtr<ScriptArguments>, unsigned long); | 85 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing&, ScriptState*, PassRefPtr<ScriptArguments>, unsigned long); |
| 86 void addMessageToConsole(PassOwnPtr<ConsoleMessage>, InspectorAgent::CheckFr
ontendBehavior); |
84 | 87 |
85 // Part of the protocol. | 88 // Part of the protocol. |
86 virtual void enable(ErrorString*); | 89 virtual void enable(ErrorString*); |
87 virtual void disable(ErrorString*); | 90 virtual void disable(ErrorString*); |
88 virtual void setBreakpointsActive(ErrorString*, bool active); | 91 virtual void setBreakpointsActive(ErrorString*, bool active); |
89 | 92 |
90 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String*
optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, co
nst String* optionalCondition, const bool* isAntiBreakpoint, TypeBuilder::Debugg
er::BreakpointId*, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >&
locations); | 93 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String*
optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, co
nst String* optionalCondition, const bool* isAntiBreakpoint, TypeBuilder::Debugg
er::BreakpointId*, RefPtr<TypeBuilder::Array<TypeBuilder::Debugger::Location> >&
locations); |
91 virtual void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& location,
const String* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<T
ypeBuilder::Debugger::Location>& actualLocation); | 94 virtual void setBreakpoint(ErrorString*, const RefPtr<JSONObject>& location,
const String* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<T
ypeBuilder::Debugger::Location>& actualLocation); |
92 virtual void removeBreakpoint(ErrorString*, const String& breakpointId); | 95 virtual void removeBreakpoint(ErrorString*, const String& breakpointId); |
93 virtual void continueToLocation(ErrorString*, const RefPtr<JSONObject>& loca
tion, const bool* interstateLocationOpt); | 96 virtual void continueToLocation(ErrorString*, const RefPtr<JSONObject>& loca
tion, const bool* interstateLocationOpt); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
197 InspectorFrontend::Debugger::Reason::Enum m_breakReason; | 200 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
198 RefPtr<JSONObject> m_breakAuxData; | 201 RefPtr<JSONObject> m_breakAuxData; |
199 bool m_javaScriptPauseScheduled; | 202 bool m_javaScriptPauseScheduled; |
200 Listener* m_listener; | 203 Listener* m_listener; |
201 }; | 204 }; |
202 | 205 |
203 } // namespace WebCore | 206 } // namespace WebCore |
204 | 207 |
205 | 208 |
206 #endif // !defined(InspectorDebuggerAgent_h) | 209 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |