#include "content/browser/devtools/shared_storage_worklet_devtools_agent_host.h"
#include <memory>
#include <utility>
#include "base/strings/strcat.h"
#include "content/browser/devtools/devtools_renderer_channel.h"
#include "content/browser/devtools/devtools_session.h"
#include "content/browser/devtools/protocol/inspector_handler.h"
#include "content/browser/devtools/protocol/protocol.h"
#include "content/browser/devtools/protocol/target_handler.h"
#include "content/browser/renderer_host/render_frame_host_impl.h"
#include "content/browser/shared_storage/shared_storage_worklet_host.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_host.h"
#include "content/public/browser/render_process_host.h"
#include "third_party/blink/public/mojom/devtools/devtools_agent.mojom.h"
namespace content {
namespace {
RenderFrameHostImpl* ContainingLocalRoot(RenderFrameHostImpl* frame) { … }
}
SharedStorageWorkletDevToolsAgentHost::SharedStorageWorkletDevToolsAgentHost(
SharedStorageWorkletHost& worklet_host,
const base::UnguessableToken& devtools_worklet_token)
: … { … }
SharedStorageWorkletDevToolsAgentHost::
~SharedStorageWorkletDevToolsAgentHost() = default;
BrowserContext* SharedStorageWorkletDevToolsAgentHost::GetBrowserContext() { … }
std::string SharedStorageWorkletDevToolsAgentHost::GetType() { … }
std::string SharedStorageWorkletDevToolsAgentHost::GetTitle() { … }
GURL SharedStorageWorkletDevToolsAgentHost::GetURL() { … }
bool SharedStorageWorkletDevToolsAgentHost::Activate() { … }
void SharedStorageWorkletDevToolsAgentHost::Reload() { … }
bool SharedStorageWorkletDevToolsAgentHost::Close() { … }
bool SharedStorageWorkletDevToolsAgentHost::AttachSession(
DevToolsSession* session,
bool acquire_wake_lock) { … }
void SharedStorageWorkletDevToolsAgentHost::WorkletReadyForInspection(
mojo::PendingRemote<blink::mojom::DevToolsAgent> agent_remote,
mojo::PendingReceiver<blink::mojom::DevToolsAgentHost>
agent_host_receiver) { … }
void SharedStorageWorkletDevToolsAgentHost::WorkletDestroyed() { … }
bool SharedStorageWorkletDevToolsAgentHost::IsRelevantTo(
RenderFrameHostImpl* frame) { … }
protocol::TargetAutoAttacher*
SharedStorageWorkletDevToolsAgentHost::auto_attacher() { … }
}