#include "content/browser/devtools/protocol/target_auto_attacher.h"
#include "base/observer_list.h"
#include "content/browser/devtools/devtools_renderer_channel.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/navigation_request.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
namespace content {
namespace protocol {
TargetAutoAttacher::TargetAutoAttacher() = default;
TargetAutoAttacher::~TargetAutoAttacher() { … }
bool TargetAutoAttacher::auto_attach() const { … }
bool TargetAutoAttacher::wait_for_debugger_on_start() const { … }
scoped_refptr<RenderFrameDevToolsAgentHost>
TargetAutoAttacher::HandleNavigation(NavigationRequest* navigation_request,
bool wait_for_debugger_on_start) { … }
void TargetAutoAttacher::UpdateAutoAttach(base::OnceClosure callback) { … }
void TargetAutoAttacher::AddClient(Client* client,
bool wait_for_debugger_on_start,
base::OnceClosure callback) { … }
void TargetAutoAttacher::UpdateWaitForDebuggerOnStart(
Client* client,
bool wait_for_debugger_on_start,
base::OnceClosure callback) { … }
void TargetAutoAttacher::RemoveClient(Client* client) { … }
void TargetAutoAttacher::AppendNavigationThrottles(
NavigationHandle* navigation_handle,
std::vector<std::unique_ptr<NavigationThrottle>>* throttles) { … }
void TargetAutoAttacher::DispatchAutoAttach(DevToolsAgentHost* host,
bool waiting_for_debugger) { … }
void TargetAutoAttacher::DispatchAutoDetach(DevToolsAgentHost* host) { … }
void TargetAutoAttacher::DispatchSetAttachedTargetsOfType(
const base::flat_set<scoped_refptr<DevToolsAgentHost>>& hosts,
const std::string& type) { … }
void TargetAutoAttacher::DispatchTargetInfoChanged(DevToolsAgentHost* host) { … }
RendererAutoAttacherBase::RendererAutoAttacherBase(
DevToolsRendererChannel* renderer_channel)
: … { … }
RendererAutoAttacherBase::~RendererAutoAttacherBase() = default;
void RendererAutoAttacherBase::UpdateAutoAttach(base::OnceClosure callback) { … }
void RendererAutoAttacherBase::ChildWorkerCreated(
DevToolsAgentHostImpl* agent_host,
bool waiting_for_debugger) { … }
}
}