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

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

Issue 16934003: Inspector: replace generic discardAgents logic with explicit call to discard a listener. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Addressed comments Created 7 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
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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas sRefPtr<InspectorObject> data); 127 void breakProgram(InspectorFrontend::Debugger::Reason::Enum breakReason, Pas sRefPtr<InspectorObject> data);
128 virtual void scriptExecutionBlockedByCSP(const String& directiveText); 128 virtual void scriptExecutionBlockedByCSP(const String& directiveText);
129 129
130 class Listener { 130 class Listener {
131 public: 131 public:
132 virtual ~Listener() { } 132 virtual ~Listener() { }
133 virtual void debuggerWasEnabled() = 0; 133 virtual void debuggerWasEnabled() = 0;
134 virtual void debuggerWasDisabled() = 0; 134 virtual void debuggerWasDisabled() = 0;
135 virtual void stepInto() = 0; 135 virtual void stepInto() = 0;
136 virtual void didPause() = 0; 136 virtual void didPause() = 0;
137 virtual void willDestroyDebuggerAgent() = 0;
137 }; 138 };
138 void setListener(Listener* listener) { m_listener = listener; } 139 void setListener(Listener* listener) { m_listener = listener; }
139 140
140 virtual ScriptDebugServer& scriptDebugServer() = 0; 141 virtual ScriptDebugServer& scriptDebugServer() = 0;
141 142
142 virtual void reportMemoryUsage(MemoryObjectInfo*) const; 143 virtual void reportMemoryUsage(MemoryObjectInfo*) const;
143 144
144 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber, BreakpointSource); 145 void setBreakpoint(const String& scriptId, int lineNumber, int columnNumber, BreakpointSource);
145 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb er, BreakpointSource); 146 void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumb er, BreakpointSource);
146 147
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 InspectorFrontend::Debugger::Reason::Enum m_breakReason; 198 InspectorFrontend::Debugger::Reason::Enum m_breakReason;
198 RefPtr<InspectorObject> m_breakAuxData; 199 RefPtr<InspectorObject> m_breakAuxData;
199 bool m_javaScriptPauseScheduled; 200 bool m_javaScriptPauseScheduled;
200 Listener* m_listener; 201 Listener* m_listener;
201 }; 202 };
202 203
203 } // namespace WebCore 204 } // namespace WebCore
204 205
205 206
206 #endif // !defined(InspectorDebuggerAgent_h) 207 #endif // !defined(InspectorDebuggerAgent_h)
OLDNEW
« no previous file with comments | « Source/core/inspector/InspectorDOMDebuggerAgent.cpp ('k') | Source/core/inspector/InspectorDebuggerAgent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698