#include "content/browser/bad_message.h"
#include "base/debug/dump_without_crashing.h"
#include "base/functional/bind.h"
#include "base/logging.h"
#include "base/metrics/histogram_functions.h"
#include "base/strings/string_number_conversions.h"
#include "base/trace_event/trace_event.h"
#include "content/public/browser/browser_message_filter.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_process_host.h"
namespace content {
namespace bad_message {
namespace {
void LogBadMessage(BadMessageReason reason) { … }
void ReceivedBadMessageOnUIThread(int render_process_id,
BadMessageReason reason) { … }
}
void ReceivedBadMessage(RenderProcessHost* host, BadMessageReason reason) { … }
void ReceivedBadMessage(int render_process_id, BadMessageReason reason) { … }
#if BUILDFLAG(CONTENT_ENABLE_LEGACY_IPC)
void ReceivedBadMessage(BrowserMessageFilter* filter, BadMessageReason reason) {
LogBadMessage(reason);
filter->ShutdownForBadMessage();
}
#endif
base::debug::CrashKeyString* GetRequestedSiteInfoKey() { … }
}
}