Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(67)

Side by Side Diff: Source/core/inspector/InspectorDebuggerAgent.h

Issue 305753005: DevTools: disable DOMDebuggerAgent when DOMAgent or DebuggerAgent were disabled. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: bugfix Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/core/inspector/InspectorDOMDebuggerAgent.cpp ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
162 class Listener { 162 class Listener {
163 public: 163 public:
164 virtual ~Listener() { } 164 virtual ~Listener() { }
165 virtual void debuggerWasEnabled() = 0; 165 virtual void debuggerWasEnabled() = 0;
166 virtual void debuggerWasDisabled() = 0; 166 virtual void debuggerWasDisabled() = 0;
167 virtual void stepInto() = 0; 167 virtual void stepInto() = 0;
168 virtual void didPause() = 0; 168 virtual void didPause() = 0;
169 }; 169 };
170 void setListener(Listener* listener) { m_listener = listener; } 170 void setListener(Listener* listener) { m_listener = listener; }
171 171
172 bool enabled();
173
172 virtual ScriptDebugServer& scriptDebugServer() = 0; 174 virtual ScriptDebugServer& scriptDebugServer() = 0;
173 175
174 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber, BreakpointSource, const String& condition = String()); 176 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber, BreakpointSource, const String& condition = String());
175 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb er, BreakpointSource); 177 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb er, BreakpointSource);
176 178
177 protected: 179 protected:
178 explicit InspectorDebuggerAgent(InjectedScriptManager*); 180 explicit InspectorDebuggerAgent(InjectedScriptManager*);
179 181
180 virtual void startListeningScriptDebugServer() = 0; 182 virtual void startListeningScriptDebugServer() = 0;
181 virtual void stopListeningScriptDebugServer() = 0; 183 virtual void stopListeningScriptDebugServer() = 0;
(...skipping 10 matching lines...) Expand all
192 void pageDidCommitLoad(); 194 void pageDidCommitLoad();
193 195
194 private: 196 private:
195 SkipPauseRequest shouldSkipExceptionPause(); 197 SkipPauseRequest shouldSkipExceptionPause();
196 SkipPauseRequest shouldSkipBreakpointPause(); 198 SkipPauseRequest shouldSkipBreakpointPause();
197 SkipPauseRequest shouldSkipStepPause(); 199 SkipPauseRequest shouldSkipStepPause();
198 200
199 void cancelPauseOnNextStatement(); 201 void cancelPauseOnNextStatement();
200 void addMessageToConsole(MessageSource, MessageType); 202 void addMessageToConsole(MessageSource, MessageType);
201 203
202 bool enabled();
203
204 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames(); 204 PassRefPtr<TypeBuilder::Array<TypeBuilder::Debugger::CallFrame> > currentCal lFrames();
205 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace(); 205 PassRefPtr<TypeBuilder::Debugger::StackTrace> currentAsyncStackTrace();
206 206
207 virtual void didParseSource(const String& scriptId, const Script&) OVERRIDE FINAL; 207 virtual void didParseSource(const String& scriptId, const Script&) OVERRIDE FINAL;
208 virtual void failedToParseSource(const String& url, const String& data, int firstLine, int errorLine, const String& errorMessage) OVERRIDE FINAL; 208 virtual void failedToParseSource(const String& url, const String& data, int firstLine, int errorLine, const String& errorMessage) OVERRIDE FINAL;
209 209
210 void setPauseOnExceptionsImpl(ErrorString*, int); 210 void setPauseOnExceptionsImpl(ErrorString*, int);
211 211
212 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource) ; 212 PassRefPtr<TypeBuilder::Debugger::Location> resolveBreakpoint(const String& breakpointId, const String& scriptId, const ScriptBreakpoint&, BreakpointSource) ;
213 void removeBreakpoint(const String& breakpointId); 213 void removeBreakpoint(const String& breakpointId);
(...skipping 27 matching lines...) Expand all
241 int m_skipStepInCount; 241 int m_skipStepInCount;
242 bool m_skipAllPauses; 242 bool m_skipAllPauses;
243 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp; 243 OwnPtr<ScriptRegexp> m_cachedSkipStackRegExp;
244 AsyncCallStackTracker m_asyncCallStackTracker; 244 AsyncCallStackTracker m_asyncCallStackTracker;
245 }; 245 };
246 246
247 } // namespace WebCore 247 } // namespace WebCore
248 248
249 249
250 #endif // !defined(InspectorDebuggerAgent_h) 250 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMDebuggerAgent.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698