#include "extensions/renderer/logging_native_handler.h"
#include <algorithm>
#include "base/functional/bind.h"
#include "base/logging.h"
#include "extensions/common/extension.h"
#include "extensions/renderer/script_context.h"
#include "v8/include/v8-function-callback.h"
#include "v8/include/v8-primitive.h"
namespace extensions {
LoggingNativeHandler::LoggingNativeHandler(ScriptContext* context)
: … { … }
LoggingNativeHandler::~LoggingNativeHandler() = default;
void LoggingNativeHandler::AddRoutes() { … }
void LoggingNativeHandler::Check(
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
void LoggingNativeHandler::Dcheck(
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
void LoggingNativeHandler::DcheckIsOn(
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
void LoggingNativeHandler::Log(
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
void LoggingNativeHandler::Warning(
const v8::FunctionCallbackInfo<v8::Value>& args) { … }
void LoggingNativeHandler::ParseArgs(
const v8::FunctionCallbackInfo<v8::Value>& args,
bool* check_value,
std::string* error_message) { … }
}