#include "content/browser/devtools/frame_auto_attacher.h"
#include "base/containers/contains.h"
#include "base/time/time.h"
#include "content/browser/devtools/auction_worklet_devtools_agent_host.h"
#include "content/browser/devtools/devtools_renderer_channel.h"
#include "content/browser/devtools/render_frame_devtools_agent_host.h"
#include "content/browser/devtools/service_worker_devtools_agent_host.h"
#include "content/browser/devtools/shared_storage_worklet_devtools_agent_host.h"
#include "content/browser/renderer_host/frame_tree.h"
#include "content/browser/renderer_host/navigation_request.h"
#include "content/browser/web_contents/web_contents_impl.h"
namespace content {
namespace {
ScopeAgentsMap;
void GetMatchingHostsByScopeMap(
const ServiceWorkerDevToolsAgentHost::List& agent_hosts,
const base::flat_set<GURL>& urls,
ScopeAgentsMap* scope_agents_map) { … }
void AddEligibleHosts(const ServiceWorkerDevToolsAgentHost::List& list,
ServiceWorkerDevToolsAgentHost::Map* result) { … }
ServiceWorkerDevToolsAgentHost::Map GetMatchingServiceWorkers(
BrowserContext* browser_context,
const base::flat_set<GURL>& urls) { … }
base::flat_set<GURL> GetFrameUrls(RenderFrameHostImpl* render_frame_host) { … }
}
FrameAutoAttacher::FrameAutoAttacher(DevToolsRendererChannel* renderer_channel)
: … { … }
FrameAutoAttacher::~FrameAutoAttacher() = default;
void FrameAutoAttacher::SetRenderFrameHost(
RenderFrameHostImpl* render_frame_host) { … }
void FrameAutoAttacher::DidFinishNavigation(
NavigationRequest* navigation_request) { … }
void FrameAutoAttacher::AutoAttachToPage(FrameTree* frame_tree,
bool wait_for_debugger_on_start) { … }
void FrameAutoAttacher::UpdateAutoAttach(base::OnceClosure callback) { … }
void FrameAutoAttacher::WorkerCreated(ServiceWorkerDevToolsAgentHost* host,
bool* should_pause_on_start) { … }
void FrameAutoAttacher::WorkerDestroyed(ServiceWorkerDevToolsAgentHost* host) { … }
void FrameAutoAttacher::AuctionWorkletCreated(DebuggableAuctionWorklet* worklet,
bool& should_pause_on_start) { … }
void FrameAutoAttacher::SharedStorageWorkletCreated(
SharedStorageWorkletDevToolsAgentHost* host,
bool& should_pause_on_start) { … }
void FrameAutoAttacher::SharedStorageWorkletDestroyed(
SharedStorageWorkletDevToolsAgentHost* host) { … }
void FrameAutoAttacher::ReattachServiceWorkers() { … }
void FrameAutoAttacher::UpdateFrames() { … }
}