

#ifndef WorkerConsoleAgent_h
#define WorkerConsoleAgent_h

#include "core/inspector/InspectorConsoleAgent.h"
#include "wtf/PassOwnPtr.h"

namespace blink {

class WorkerConsoleAgent FINAL : public InspectorConsoleAgent {
    WTF_MAKE_NONCOPYABLE(WorkerConsoleAgent);
public:
    static PassOwnPtrWillBeRawPtr<WorkerConsoleAgent> create(InspectorTimelineAgent* timelineAgent, InjectedScriptManager* injectedScriptManager)
    {
        return adoptPtrWillBeNoop(new WorkerConsoleAgent(timelineAgent, injectedScriptManager));
    }
    virtual ~WorkerConsoleAgent();

    virtual bool isWorkerAgent() OVERRIDE { return true; }

private:
    WorkerConsoleAgent(InspectorTimelineAgent*, InjectedScriptManager*);
    virtual void addInspectedNode(ErrorString*, int nodeId) OVERRIDE;
};

} // namespace blink

#endif // !defined(WorkerConsoleAgent_h)
