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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; | 64 WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED; |
65 public: | 65 public: |
66 static const char* backtraceObjectGroup; | 66 static const char* backtraceObjectGroup; |
67 | 67 |
68 virtual ~InspectorDebuggerAgent(); | 68 virtual ~InspectorDebuggerAgent(); |
69 | 69 |
70 virtual void causesRecompilation(ErrorString*, bool*); | 70 virtual void causesRecompilation(ErrorString*, bool*); |
71 virtual void canSetScriptSource(ErrorString*, bool*); | 71 virtual void canSetScriptSource(ErrorString*, bool*); |
72 virtual void supportsSeparateScriptCompilationAndExecution(ErrorString*, boo
l*); | 72 virtual void supportsSeparateScriptCompilationAndExecution(ErrorString*, boo
l*); |
73 | 73 |
74 virtual void enable(ErrorString*); | |
75 virtual void disable(ErrorString*); | |
76 | |
77 virtual void setFrontend(InspectorFrontend*); | 74 virtual void setFrontend(InspectorFrontend*); |
78 virtual void clearFrontend(); | 75 virtual void clearFrontend(); |
79 virtual void restore(); | 76 virtual void restore(); |
80 | 77 |
81 bool isPaused(); | 78 bool isPaused(); |
82 void addMessageToConsole(MessageSource, MessageType); | 79 void addMessageToConsole(MessageSource, MessageType); |
83 | 80 |
84 // Part of the protocol. | 81 // Part of the protocol. |
| 82 virtual void enable(ErrorString*); |
| 83 virtual void disable(ErrorString*); |
85 virtual void setBreakpointsActive(ErrorString*, bool active); | 84 virtual void setBreakpointsActive(ErrorString*, bool active); |
86 | 85 |
87 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String*
optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, co
nst String* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<Type
Builder::Array<TypeBuilder::Debugger::Location> >& locations); | 86 virtual void setBreakpointByUrl(ErrorString*, int lineNumber, const String*
optionalURL, const String* optionalURLRegex, const int* optionalColumnNumber, co
nst String* optionalCondition, TypeBuilder::Debugger::BreakpointId*, RefPtr<Type
Builder::Array<TypeBuilder::Debugger::Location> >& locations); |
88 virtual void setBreakpoint(ErrorString*, const RefPtr<InspectorObject>& loca
tion, const String* optionalCondition, TypeBuilder::Debugger::BreakpointId*, Ref
Ptr<TypeBuilder::Debugger::Location>& actualLocation); | 87 virtual void setBreakpoint(ErrorString*, const RefPtr<InspectorObject>& loca
tion, const String* optionalCondition, TypeBuilder::Debugger::BreakpointId*, Ref
Ptr<TypeBuilder::Debugger::Location>& actualLocation); |
89 virtual void removeBreakpoint(ErrorString*, const String& breakpointId); | 88 virtual void removeBreakpoint(ErrorString*, const String& breakpointId); |
90 virtual void continueToLocation(ErrorString*, const RefPtr<InspectorObject>&
location); | 89 virtual void continueToLocation(ErrorString*, const RefPtr<InspectorObject>&
location); |
91 | 90 |
92 virtual void searchInContent(ErrorString*, const String& scriptId, const Str
ing& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefP
tr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&); | 91 virtual void searchInContent(ErrorString*, const String& scriptId, const Str
ing& query, const bool* optionalCaseSensitive, const bool* optionalIsRegex, RefP
tr<TypeBuilder::Array<TypeBuilder::Page::SearchMatch> >&); |
93 virtual void setScriptSource(ErrorString*, const String& scriptId, const Str
ing& newContent, const bool* preview, RefPtr<TypeBuilder::Array<TypeBuilder::Deb
ugger::CallFrame> >& newCallFrames, RefPtr<InspectorObject>& result); | 92 virtual void setScriptSource(ErrorString*, const String& scriptId, const Str
ing& newContent, const bool* preview, RefPtr<TypeBuilder::Array<TypeBuilder::Deb
ugger::CallFrame> >& newCallFrames, RefPtr<InspectorObject>& result); |
94 virtual void restartFrame(ErrorString*, const String& callFrameId, RefPtr<Ty
peBuilder::Array<TypeBuilder::Debugger::CallFrame> >& newCallFrames, RefPtr<Insp
ectorObject>& result); | 93 virtual void restartFrame(ErrorString*, const String& callFrameId, RefPtr<Ty
peBuilder::Array<TypeBuilder::Debugger::CallFrame> >& newCallFrames, RefPtr<Insp
ectorObject>& result); |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 protected: | 133 protected: |
135 InspectorDebuggerAgent(InstrumentingAgents*, InspectorState*, InjectedScript
Manager*); | 134 InspectorDebuggerAgent(InstrumentingAgents*, InspectorState*, InjectedScript
Manager*); |
136 | 135 |
137 virtual void startListeningScriptDebugServer() = 0; | 136 virtual void startListeningScriptDebugServer() = 0; |
138 virtual void stopListeningScriptDebugServer() = 0; | 137 virtual void stopListeningScriptDebugServer() = 0; |
139 virtual void muteConsole() = 0; | 138 virtual void muteConsole() = 0; |
140 virtual void unmuteConsole() = 0; | 139 virtual void unmuteConsole() = 0; |
141 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } | 140 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana
ger; } |
142 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; | 141 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut
ionContextId) = 0; |
143 | 142 |
| 143 virtual void enable(); |
144 virtual void disable(); | 144 virtual void disable(); |
145 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr
iptValue& exception); | 145 virtual void didPause(ScriptState*, const ScriptValue& callFrames, const Scr
iptValue& exception); |
146 virtual void didContinue(); | 146 virtual void didContinue(); |
147 void reset(); | 147 void reset(); |
148 | 148 |
149 private: | 149 private: |
150 void enable(); | |
151 bool enabled(); | 150 bool enabled(); |
152 | 151 |
153 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); | 152 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal
lFrames(); |
154 | 153 |
155 virtual void didParseSource(const String& scriptId, const Script&); | 154 virtual void didParseSource(const String& scriptId, const Script&); |
156 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage); | 155 virtual void failedToParseSource(const String& url, const String& data, int
firstLine, int errorLine, const String& errorMessage); |
157 | 156 |
158 void setPauseOnExceptionsImpl(ErrorString*, int); | 157 void setPauseOnExceptionsImpl(ErrorString*, int); |
159 | 158 |
160 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&); | 159 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String&
breakpointId, const String& scriptId, const ScriptBreakpoint&); |
(...skipping 17 matching lines...) Expand all Loading... |
178 RefPtr<InspectorObject> m_breakAuxData; | 177 RefPtr<InspectorObject> m_breakAuxData; |
179 bool m_javaScriptPauseScheduled; | 178 bool m_javaScriptPauseScheduled; |
180 Listener* m_listener; | 179 Listener* m_listener; |
181 }; | 180 }; |
182 | 181 |
183 } // namespace WebCore | 182 } // namespace WebCore |
184 | 183 |
185 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) | 184 #endif // ENABLE(JAVASCRIPT_DEBUGGER) && ENABLE(INSPECTOR) |
186 | 185 |
187 #endif // !defined(InspectorDebuggerAgent_h) | 186 #endif // !defined(InspectorDebuggerAgent_h) |
OLD | NEW |