#ifndef EXTENSIONS_RENDERER_LOGGING_NATIVE_HANDLER_H_
#define EXTENSIONS_RENDERER_LOGGING_NATIVE_HANDLER_H_
#include <string>
#include "extensions/renderer/object_backed_native_handler.h"
#include "v8/include/v8-forward.h"
namespace extensions {
class ScriptContext;
class LoggingNativeHandler : public ObjectBackedNativeHandler {
public:
explicit LoggingNativeHandler(ScriptContext* context);
~LoggingNativeHandler() override;
void AddRoutes() override;
void Check(const v8::FunctionCallbackInfo<v8::Value>& args);
void Dcheck(const v8::FunctionCallbackInfo<v8::Value>& args);
void DcheckIsOn(const v8::FunctionCallbackInfo<v8::Value>& args);
void Log(const v8::FunctionCallbackInfo<v8::Value>& args);
void Warning(const v8::FunctionCallbackInfo<v8::Value>& args);
void ParseArgs(const v8::FunctionCallbackInfo<v8::Value>& args,
bool* check_value,
std::string* error_message);
};
}
#endif