WorkerConsoleClient.h [plain text]
#pragma once
#include "WorkerGlobalScope.h"
#include <JavaScriptCore/ConsoleClient.h>
#include <wtf/Forward.h>
namespace JSC {
class CallFrame;
}
namespace WebCore {
class WorkerConsoleClient final : public JSC::ConsoleClient {
WTF_MAKE_FAST_ALLOCATED;
public:
explicit WorkerConsoleClient(WorkerGlobalScope&);
virtual ~WorkerConsoleClient();
private:
void messageWithTypeAndLevel(MessageType, MessageLevel, JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) override;
void count(JSC::JSGlobalObject*, const String& label) override;
void countReset(JSC::JSGlobalObject*, const String& label) override;
void profile(JSC::JSGlobalObject*, const String& title) override;
void profileEnd(JSC::JSGlobalObject*, const String& title) override;
void takeHeapSnapshot(JSC::JSGlobalObject*, const String& title) override;
void time(JSC::JSGlobalObject*, const String& label) override;
void timeLog(JSC::JSGlobalObject*, const String& label, Ref<Inspector::ScriptArguments>&&) override;
void timeEnd(JSC::JSGlobalObject*, const String& label) override;
void timeStamp(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) override;
void record(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) override;
void recordEnd(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) override;
void screenshot(JSC::JSGlobalObject*, Ref<Inspector::ScriptArguments>&&) override;
WorkerGlobalScope& m_workerGlobalScope;
};
}