#include "ipc/ipc_logging.h"
#include "base/task/single_thread_task_runner.h"
#include "build/build_config.h"
#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
#define IPC_MESSAGE_MACROS_LOG_ENABLED
#endif
#include <stddef.h>
#include <stdint.h>
#include "base/command_line.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/location.h"
#include "base/logging.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/string_util.h"
#include "base/strings/stringprintf.h"
#include "base/threading/thread.h"
#include "base/time/time.h"
#include "build/build_config.h"
#include "ipc/ipc_message_utils.h"
#include "ipc/ipc_sender.h"
#include "ipc/ipc_sync_message.h"
#if BUILDFLAG(IS_POSIX)
#include <unistd.h>
#endif
#if BUILDFLAG(IPC_MESSAGE_LOG_ENABLED)
Time;
namespace IPC {
const int kLogSendDelayMs = …;
LogFunctionMap* Logging::log_function_map_;
Logging::Logging()
: … { … }
Logging::~Logging() { … }
Logging* Logging::GetInstance() { … }
void Logging::SetConsumer(Consumer* consumer) { … }
void Logging::Enable() { … }
void Logging::Disable() { … }
void Logging::OnSendLogs() { … }
void Logging::SetIPCSender(IPC::Sender* sender) { … }
void Logging::OnReceivedLoggingMessage(const Message& message) { … }
void Logging::OnSendMessage(Message* message) { … }
void Logging::OnPreDispatchMessage(const Message& message) { … }
void Logging::OnPostDispatchMessage(const Message& message) { … }
void Logging::GetMessageText(uint32_t type, std::string* name,
const Message* message,
std::string* params) { … }
const char* Logging::ANSIEscape(ANSIColor color) { … }
Logging::ANSIColor Logging::DelayColor(double delay) { … }
void Logging::Log(const LogData& data) { … }
void GenerateLogData(const Message& message, LogData* data, bool get_params) { … }
}
#endif