| Index: Source/core/inspector/WorkerConsoleAgent.h
|
| diff --git a/Source/core/inspector/WorkerConsoleAgent.h b/Source/core/inspector/WorkerConsoleAgent.h
|
| index 27ec0acfaa4cc60ee212facf9ea5124d0e16c64f..1796c575ef8498def033620c3794103112149008 100644
|
| --- a/Source/core/inspector/WorkerConsoleAgent.h
|
| +++ b/Source/core/inspector/WorkerConsoleAgent.h
|
| @@ -39,19 +39,35 @@ namespace WebCore {
|
| class WorkerConsoleAgent : public InspectorConsoleAgent {
|
| WTF_MAKE_NONCOPYABLE(WorkerConsoleAgent);
|
| public:
|
| - static PassOwnPtr<WorkerConsoleAgent> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* state, InjectedScriptManager* injectedScriptManager)
|
| + static PassRefPtr<WorkerConsoleAgent> create(InstrumentingAgents* instrumentingAgents, InspectorState* state, InjectedScriptManager* injectedScriptManager)
|
| {
|
| - return adoptPtr(new WorkerConsoleAgent(instrumentingAgents, state, injectedScriptManager));
|
| + return adoptRef(new WorkerConsoleAgent(instrumentingAgents, state, injectedScriptManager));
|
| }
|
| virtual ~WorkerConsoleAgent();
|
|
|
| virtual bool isWorkerAgent() OVERRIDE { return true; }
|
|
|
| private:
|
| - WorkerConsoleAgent(InstrumentingAgents*, InspectorCompositeState*, InjectedScriptManager*);
|
| + WorkerConsoleAgent(InstrumentingAgents*, InspectorState*, InjectedScriptManager*);
|
| virtual void addInspectedNode(ErrorString*, int nodeId);
|
| };
|
|
|
| +class WorkerConsoleController: public InspectorConsoleController {
|
| +public:
|
| +
|
| + static PassOwnPtr<WorkerConsoleController> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InjectedScriptManager* injectedScriptManager)
|
| + {
|
| + return adoptPtr(new WorkerConsoleController(instrumentingAgents, compositeState, injectedScriptManager));
|
| + }
|
| +
|
| +protected:
|
| + WorkerConsoleController(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InjectedScriptManager* injectedScriptManager)
|
| + : InspectorConsoleController(instrumentingAgents, compositeState)
|
| + {
|
| + setAgent(WorkerConsoleAgent::create(m_instrumentingAgents, m_state, injectedScriptManager));
|
| + }
|
| +};
|
| +
|
| } // namespace WebCore
|
|
|
| #endif // !defined(WorkerConsoleAgent_h)
|
|
|