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

Unified Diff: Source/core/inspector/InspectorDebuggerAgent.h

Issue 17030009: Inspector: wrapped inspector agent instances into factory-like wrappers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Made InspectorBaseAgent RefCounted 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 side-by-side diff with in-line comments
Download patch
Index: Source/core/inspector/InspectorDebuggerAgent.h
diff --git a/Source/core/inspector/InspectorDebuggerAgent.h b/Source/core/inspector/InspectorDebuggerAgent.h
index 9b8bf3702bb2148442e035ec75ecbc31a58eda90..617179ae7724162572a8b1fae4cd23eda75f593c 100644
--- a/Source/core/inspector/InspectorDebuggerAgent.h
+++ b/Source/core/inspector/InspectorDebuggerAgent.h
@@ -61,7 +61,7 @@ class ScriptValue;
typedef String ErrorString;
-class InspectorDebuggerAgent : public InspectorBaseAgent<InspectorDebuggerAgent>, public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommandHandler {
+class InspectorDebuggerAgent : public InspectorBaseAgent, public ScriptDebugListener, public InspectorBackendDispatcher::DebuggerCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorDebuggerAgent); WTF_MAKE_FAST_ALLOCATED;
public:
enum BreakpointSource {
@@ -145,7 +145,7 @@ public:
void removeBreakpoint(const String& scriptId, int lineNumber, int columnNumber, BreakpointSource);
protected:
- InspectorDebuggerAgent(InstrumentingAgents*, InspectorCompositeState*, InjectedScriptManager*);
+ InspectorDebuggerAgent(InstrumentingAgents*, InspectorState*, InjectedScriptManager*);
virtual void startListeningScriptDebugServer() = 0;
virtual void stopListeningScriptDebugServer() = 0;
@@ -200,6 +200,12 @@ private:
Listener* m_listener;
};
+class InspectorDebuggerController : public InspectorBaseController<InspectorDebuggerController, InspectorDebuggerAgent> {
+protected:
+ InspectorDebuggerController(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState)
+ : InspectorBaseController<InspectorDebuggerController, InspectorDebuggerAgent>("Debugger", instrumentingAgents, compositeState) { }
+};
+
} // namespace WebCore

Powered by Google App Engine
This is Rietveld 408576698