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

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

Issue 14294004: Implementing console command 'debug'. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after
124 virtual void debuggerWasDisabled() = 0; 124 virtual void debuggerWasDisabled() = 0;
125 virtual void stepInto() = 0; 125 virtual void stepInto() = 0;
126 virtual void didPause() = 0; 126 virtual void didPause() = 0;
127 }; 127 };
128 void setListener(Listener* listener) { m_listener = listener; } 128 void setListener(Listener* listener) { m_listener = listener; }
129 129
130 virtual ScriptDebugServer& scriptDebugServer() = 0; 130 virtual ScriptDebugServer& scriptDebugServer() = 0;
131 131
132 virtual void reportMemoryUsage(MemoryObjectInfo*) const; 132 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
133 133
134 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber) ;
135 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb er);
136
134 protected: 137 protected:
135 InspectorDebuggerAgent(InstrumentingAgents*, InspectorCompositeState*, Injec tedScriptManager*); 138 InspectorDebuggerAgent(InstrumentingAgents*, InspectorCompositeState*, Injec tedScriptManager*);
136 139
137 virtual void startListeningScriptDebugServer() = 0; 140 virtual void startListeningScriptDebugServer() = 0;
138 virtual void stopListeningScriptDebugServer() = 0; 141 virtual void stopListeningScriptDebugServer() = 0;
139 virtual void muteConsole() = 0; 142 virtual void muteConsole() = 0;
140 virtual void unmuteConsole() = 0; 143 virtual void unmuteConsole() = 0;
141 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana ger; } 144 InjectedScriptManager* injectedScriptManager() { return m_injectedScriptMana ger; }
142 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) = 0; 145 virtual InjectedScript injectedScriptForEval(ErrorString*, const int* execut ionContextId) = 0;
143 146
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 InspectorFrontend::Debugger::Reason::Enum m_breakReason; 180 InspectorFrontend::Debugger::Reason::Enum m_breakReason;
178 RefPtr<InspectorObject> m_breakAuxData; 181 RefPtr<InspectorObject> m_breakAuxData;
179 bool m_javaScriptPauseScheduled; 182 bool m_javaScriptPauseScheduled;
180 Listener* m_listener; 183 Listener* m_listener;
181 }; 184 };
182 185
183 } // namespace WebCore 186 } // namespace WebCore
184 187
185 188
186 #endif // !defined(InspectorDebuggerAgent_h) 189 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698