#include "content/browser/devtools/worker_or_worklet_devtools_agent_host.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "content/browser/devtools/worker_devtools_manager.h"
#include "content/browser/renderer_host/render_process_host_impl.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/child_process_host.h"
#include "third_party/blink/public/common/features.h"
namespace content {
WorkerOrWorkletDevToolsAgentHost::WorkerOrWorkletDevToolsAgentHost(
int process_id,
const GURL& url,
const std::string& name,
const base::UnguessableToken& devtools_worker_token,
const std::string& parent_id,
base::OnceCallback<void(DevToolsAgentHostImpl*)> destroyed_callback)
: … { … }
WorkerOrWorkletDevToolsAgentHost::~WorkerOrWorkletDevToolsAgentHost() = default;
void WorkerOrWorkletDevToolsAgentHost::SetRenderer(
int process_id,
mojo::PendingRemote<blink::mojom::DevToolsAgent> agent_remote,
mojo::PendingReceiver<blink::mojom::DevToolsAgentHost> host_receiver) { … }
void WorkerOrWorkletDevToolsAgentHost::ChildWorkerCreated(
const GURL& url,
const std::string& name,
base::OnceCallback<void(DevToolsAgentHostImpl*)> callback) { … }
void WorkerOrWorkletDevToolsAgentHost::Disconnected() { … }
BrowserContext* WorkerOrWorkletDevToolsAgentHost::GetBrowserContext() { … }
RenderProcessHost* WorkerOrWorkletDevToolsAgentHost::GetProcessHost() { … }
std::string WorkerOrWorkletDevToolsAgentHost::GetTitle() { … }
std::string WorkerOrWorkletDevToolsAgentHost::GetParentId() { … }
GURL WorkerOrWorkletDevToolsAgentHost::GetURL() { … }
bool WorkerOrWorkletDevToolsAgentHost::Activate() { … }
void WorkerOrWorkletDevToolsAgentHost::Reload() { … }
bool WorkerOrWorkletDevToolsAgentHost::Close() { … }
}