#include "content/browser/devtools/protocol/audits_handler.h"
#include "content/browser/devtools/devtools_agent_host_impl.h"
#include "content/browser/devtools/devtools_issue_storage.h"
#include "content/browser/devtools/render_frame_devtools_agent_host.h"
#include "content/browser/renderer_host/frame_tree_node.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/public/browser/web_contents.h"
namespace content {
namespace protocol {
AuditsHandler::AuditsHandler()
: … { … }
AuditsHandler::~AuditsHandler() = default;
std::vector<AuditsHandler*> AuditsHandler::ForAgentHost(
DevToolsAgentHostImpl* host) { … }
void AuditsHandler::SetRenderer(int process_host_id,
RenderFrameHostImpl* frame_host) { … }
void AuditsHandler::Wire(UberDispatcher* dispatcher) { … }
DispatchResponse AuditsHandler::Disable() { … }
namespace {
void SendStoredIssuesForFrameToAgent(RenderFrameHostImpl* rfh,
protocol::AuditsHandler* handler) { … }
}
DispatchResponse AuditsHandler::Enable() { … }
void AuditsHandler::OnIssueAdded(
const protocol::Audits::InspectorIssue* issue) { … }
}
}