| Index: Source/core/inspector/WorkerConsoleAgent.h
|
| diff --git a/Source/core/inspector/WorkerConsoleAgent.h b/Source/core/inspector/WorkerConsoleAgent.h
|
| index 27ec0acfaa4cc60ee212facf9ea5124d0e16c64f..305ba85598a888fd675e0a070c4fefff2750d8ea 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 WorkerConsoleFactory : public InspectorConsoleFactory {
|
| +public:
|
| +
|
| + static PassOwnPtr<WorkerConsoleFactory> create(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InjectedScriptManager* injectedScriptManager)
|
| + {
|
| + return adoptPtr(new WorkerConsoleFactory(instrumentingAgents, compositeState, injectedScriptManager));
|
| + }
|
| +
|
| +protected:
|
| + WorkerConsoleFactory(InstrumentingAgents* instrumentingAgents, InspectorCompositeState* compositeState, InjectedScriptManager* injectedScriptManager)
|
| + : InspectorConsoleFactory(instrumentingAgents, compositeState)
|
| + {
|
| + setAgent(WorkerConsoleAgent::create(m_instrumentingAgents, m_state, injectedScriptManager));
|
| + }
|
| +};
|
| +
|
| } // namespace WebCore
|
|
|
| #endif // !defined(WorkerConsoleAgent_h)
|
|
|