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 28 matching lines...) Expand all Loading... |
39 #include "core/inspector/ScriptDebugListener.h" | 39 #include "core/inspector/ScriptDebugListener.h" |
40 #include "core/page/ConsoleTypes.h" | 40 #include "core/page/ConsoleTypes.h" |
41 #include "wtf/Forward.h" | 41 #include "wtf/Forward.h" |
42 #include "wtf/HashMap.h" | 42 #include "wtf/HashMap.h" |
43 #include "wtf/PassRefPtr.h" | 43 #include "wtf/PassRefPtr.h" |
44 #include "wtf/Vector.h" | 44 #include "wtf/Vector.h" |
45 #include "wtf/text/StringHash.h" | 45 #include "wtf/text/StringHash.h" |
46 | 46 |
47 namespace WebCore { | 47 namespace WebCore { |
48 | 48 |
| 49 class ConsoleMessage; |
49 class InjectedScriptManager; | 50 class InjectedScriptManager; |
50 class InspectorFrontend; | 51 class InspectorFrontend; |
51 class InspectorState; | 52 class InspectorState; |
52 class InstrumentingAgents; | 53 class InstrumentingAgents; |
53 class JSONObject; | 54 class JSONObject; |
54 class ScriptArguments; | 55 class ScriptArguments; |
55 class ScriptCallStack; | 56 class ScriptCallStack; |
56 class ScriptDebugServer; | 57 class ScriptDebugServer; |
57 class ScriptValue; | 58 class ScriptValue; |
58 | 59 |
(...skipping 15 matching lines...) Expand all Loading... |
74 virtual void canSetScriptSource(ErrorString*, bool* result) { *result = true
; } | 75 virtual void canSetScriptSource(ErrorString*, bool* result) { *result = true
; } |
75 | 76 |
76 virtual void setFrontend(InspectorFrontend*); | 77 virtual void setFrontend(InspectorFrontend*); |
77 virtual void clearFrontend(); | 78 virtual void clearFrontend(); |
78 virtual void restore(); | 79 virtual void restore(); |
79 | 80 |
80 bool isPaused(); | 81 bool isPaused(); |
81 bool runningNestedMessageLoop(); | 82 bool runningNestedMessageLoop(); |
82 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing&, PassRefPtr<ScriptCallStack>, unsigned long); | 83 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); | 84 void addMessageToConsole(MessageSource, MessageType, MessageLevel, const Str
ing&, ScriptState*, PassRefPtr<ScriptArguments>, unsigned long); |
| 85 void addMessageToConsole(PassOwnPtr<ConsoleMessage>); |
84 | 86 |
85 // Part of the protocol. | 87 // Part of the protocol. |
86 virtual void enable(ErrorString*); | 88 virtual void enable(ErrorString*); |
87 virtual void disable(ErrorString*); | 89 virtual void disable(ErrorString*); |
88 virtual void setBreakpointsActive(ErrorString*, bool active); | 90 virtual void setBreakpointsActive(ErrorString*, bool active); |
89 | 91 |
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); | 92 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); | 93 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); | 94 virtual void removeBreakpoint(ErrorString*, const String& breakpointId); |
93 virtual void continueToLocation(ErrorString*, const RefPtr<JSONObject>& loca
tion, const bool* interstateLocationOpt); | 95 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; | 199 InspectorFrontend::Debugger::Reason::Enum m_breakReason; |
198 RefPtr<JSONObject> m_breakAuxData; | 200 RefPtr<JSONObject> m_breakAuxData; |
199 bool m_javaScriptPauseScheduled; | 201 bool m_javaScriptPauseScheduled; |
200 Listener* m_listener; | 202 Listener* m_listener; |
201 }; | 203 }; |
202 | 204 |
203 } // namespace WebCore | 205 } // namespace WebCore |
204 | 206 |
205 | 207 |
206 #endif // !defined(InspectorDebuggerAgent_h) | 208 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |