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

Unified Diff: Source/core/inspector/InspectorRuntimeAgent.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/InspectorRuntimeAgent.h
diff --git a/Source/core/inspector/InspectorRuntimeAgent.h b/Source/core/inspector/InspectorRuntimeAgent.h
index 7b593fad37171572050f114fab78f1de1c160043..5b83bd90e5e8ad9f36e932634fce7e0c5d9190b2 100644
--- a/Source/core/inspector/InspectorRuntimeAgent.h
+++ b/Source/core/inspector/InspectorRuntimeAgent.h
@@ -51,7 +51,7 @@ class WorkerContext;
typedef String ErrorString;
-class InspectorRuntimeAgent : public InspectorBaseAgent<InspectorRuntimeAgent>, public InspectorBackendDispatcher::RuntimeCommandHandler {
+class InspectorRuntimeAgent : public InspectorBaseAgent, public InspectorBackendDispatcher::RuntimeCommandHandler {
WTF_MAKE_NONCOPYABLE(InspectorRuntimeAgent);
public:
virtual ~InspectorRuntimeAgent();
@@ -85,7 +85,7 @@ public:
virtual void run(ErrorString*);
protected:
- InspectorRuntimeAgent(InstrumentingAgents*, InspectorCompositeState*, InjectedScriptManager*, ScriptDebugServer*);
+ InspectorRuntimeAgent(InstrumentingAgents*, InspectorState*, InjectedScriptManager*, ScriptDebugServer*);
virtual InjectedScript injectedScriptForEval(ErrorString*, const int* executionContextId) = 0;
virtual void muteConsole() = 0;
@@ -99,6 +99,12 @@ private:
ScriptDebugServer* m_scriptDebugServer;
};
+class InspectorRuntimeController: public InspectorBaseController<InspectorRuntimeController, InspectorRuntimeAgent> {
+protected:
+ InspectorRuntimeController(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState)
+ : InspectorBaseController<InspectorRuntimeController, InspectorRuntimeAgent>("Runtime", instrumentingAgents, compositeState) { }
+};
+
} // namespace WebCore
#endif // InspectorRuntimeAgent_h

Powered by Google App Engine
This is Rietveld 408576698