#include "third_party/blink/renderer/core/inspector/inspector_log_agent.h"
#include "base/format_macros.h"
#include "third_party/blink/renderer/core/frame/performance_monitor.h"
#include "third_party/blink/renderer/core/inspector/console_message.h"
#include "third_party/blink/renderer/core/inspector/console_message_storage.h"
#include "third_party/blink/renderer/core/inspector/inspector_dom_agent.h"
#include "third_party/blink/renderer/core/inspector/resolve_node.h"
#include "third_party/blink/renderer/platform/bindings/script_forbidden_scope.h"
#include "third_party/blink/renderer/platform/bindings/source_location.h"
#include "third_party/blink/renderer/platform/heap/garbage_collected.h"
#include "third_party/blink/renderer/platform/wtf/text/wtf_string.h"
namespace blink {
namespace {
String MessageSourceValue(mojom::blink::ConsoleMessageSource source) { … }
String MessageLevelValue(mojom::blink::ConsoleMessageLevel level) { … }
String MessageCategoryValue(mojom::blink::ConsoleMessageCategory category) { … }
}
ViolationSetting;
InspectorLogAgent::InspectorLogAgent(
ConsoleMessageStorage* storage,
PerformanceMonitor* performance_monitor,
v8_inspector::V8InspectorSession* v8_session)
: … { … }
InspectorLogAgent::~InspectorLogAgent() = default;
void InspectorLogAgent::Trace(Visitor* visitor) const { … }
void InspectorLogAgent::Restore() { … }
void InspectorLogAgent::ConsoleMessageAdded(ConsoleMessage* message) { … }
void InspectorLogAgent::InnerEnable() { … }
protocol::Response InspectorLogAgent::enable() { … }
protocol::Response InspectorLogAgent::disable() { … }
protocol::Response InspectorLogAgent::clear() { … }
static PerformanceMonitor::Violation ParseViolation(const String& name) { … }
protocol::Response InspectorLogAgent::startViolationsReport(
std::unique_ptr<protocol::Array<ViolationSetting>> settings) { … }
protocol::Response InspectorLogAgent::stopViolationsReport() { … }
void InspectorLogAgent::ReportLongLayout(base::TimeDelta duration) { … }
void InspectorLogAgent::ReportGenericViolation(PerformanceMonitor::Violation,
const String& text,
base::TimeDelta time,
SourceLocation* location) { … }
}