#include "remoting/host/native_messaging/log_message_handler.h"
#include "base/functional/bind.h"
#include "base/lazy_instance.h"
#include "base/logging.h"
#include "base/strings/string_util.h"
#include "base/synchronization/lock.h"
#include "base/task/single_thread_task_runner.h"
#include "base/values.h"
namespace remoting {
namespace {
base::LazyInstance<base::Lock>::Leaky g_log_message_handler_lock = …;
LogMessageHandler* g_log_message_handler = …;
}
LogMessageHandler::LogMessageHandler(const Delegate& delegate)
: … { … }
LogMessageHandler::~LogMessageHandler() { … }
const char* LogMessageHandler::kDebugMessageTypeName = …;
bool LogMessageHandler::OnLogMessage(logging::LogSeverity severity,
const char* file,
int line,
size_t message_start,
const std::string& str) { … }
void LogMessageHandler::PostLogMessageToCorrectThread(
logging::LogSeverity severity,
const char* file,
int line,
size_t message_start,
const std::string& str) { … }
void LogMessageHandler::SendLogMessageToClient(logging::LogSeverity severity,
const char* file,
int line,
size_t message_start,
const std::string& str) { … }
}