Index: Source/core/inspector/WorkerDebuggerAgent.h |
diff --git a/Source/core/inspector/WorkerDebuggerAgent.h b/Source/core/inspector/WorkerDebuggerAgent.h |
index b766d853afe8d543896b5f86e9d5f409fd86bac1..4dfc450255dac7baeb67cefc2e0ecf84765f5aeb 100644 |
--- a/Source/core/inspector/WorkerDebuggerAgent.h |
+++ b/Source/core/inspector/WorkerDebuggerAgent.h |
@@ -43,14 +43,14 @@ class WorkerDebuggerAgent : public InspectorDebuggerAgent { |
WTF_MAKE_NONCOPYABLE(WorkerDebuggerAgent); |
WTF_MAKE_FAST_ALLOCATED; |
public: |
- static PassOwnPtr<WorkerDebuggerAgent> create(InstrumentingAgents*, InspectorCompositeState*, WorkerScriptDebugServer*, WorkerContext*, InjectedScriptManager*); |
+ static PassRefPtr<WorkerDebuggerAgent> create(InstrumentingAgents*, InspectorState*, WorkerScriptDebugServer*, WorkerContext*, InjectedScriptManager*); |
virtual ~WorkerDebuggerAgent(); |
static const char* debuggerTaskMode; |
static void interruptAndDispatchInspectorCommands(WorkerThread*); |
private: |
- WorkerDebuggerAgent(InstrumentingAgents*, InspectorCompositeState*, WorkerScriptDebugServer*, WorkerContext*, InjectedScriptManager*); |
+ WorkerDebuggerAgent(InstrumentingAgents*, InspectorState*, WorkerScriptDebugServer*, WorkerContext*, InjectedScriptManager*); |
virtual void startListeningScriptDebugServer(); |
virtual void stopListeningScriptDebugServer(); |
@@ -64,6 +64,22 @@ private: |
WorkerContext* m_inspectedWorkerContext; |
}; |
+class WorkerDebuggerController: public InspectorDebuggerController { |
+public: |
+ |
+ static PassOwnPtr<WorkerDebuggerController> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, WorkerScriptDebugServer* scriptDebugServer, WorkerContext* context, InjectedScriptManager* injectedScriptManager) |
+ { |
+ return adoptPtr(new WorkerDebuggerController(instrumentingAgents, compositeState, scriptDebugServer, context, injectedScriptManager)); |
+ } |
+ |
+protected: |
+ WorkerDebuggerController(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, WorkerScriptDebugServer* scriptDebugServer, WorkerContext* context, InjectedScriptManager* injectedScriptManager) |
+ : InspectorDebuggerController(instrumentingAgents, compositeState) |
+ { |
+ setAgent(WorkerDebuggerAgent::create(m_instrumentingAgents, m_state, scriptDebugServer, context, injectedScriptManager)); |
+ } |
+}; |
+ |
} // namespace WebCore |
#endif // !defined(WorkerDebuggerAgent_h) |