#include "content/services/auction_worklet/auction_v8_devtools_agent.h"
#include <stdint.h>
#include "base/memory/ptr_util.h"
#include "base/memory/scoped_refptr.h"
#include "base/memory/weak_ptr.h"
#include "base/not_fatal_until.h"
#include "base/notreached.h"
#include "base/task/sequenced_task_runner.h"
#include "content/services/auction_worklet/auction_v8_devtools_session.h"
#include "content/services/auction_worklet/auction_v8_helper.h"
#include "content/services/auction_worklet/debug_command_queue.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
namespace auction_worklet {
AuctionV8DevToolsAgent::ContextGroupInfo::ContextGroupInfo() = default;
AuctionV8DevToolsAgent::ContextGroupInfo::~ContextGroupInfo() = default;
AuctionV8DevToolsAgent::AuctionV8DevToolsAgent(
AuctionV8Helper* v8_helper,
scoped_refptr<DebugCommandQueue> debug_command_queue,
scoped_refptr<base::SequencedTaskRunner> io_session_receiver_sequence)
: … { … }
AuctionV8DevToolsAgent::~AuctionV8DevToolsAgent() { … }
void AuctionV8DevToolsAgent::Connect(
mojo::PendingAssociatedReceiver<blink::mojom::DevToolsAgent> agent,
int context_group_id) { … }
void AuctionV8DevToolsAgent::MaybeTriggerInstrumentationBreakpoint(
int context_group_id,
const std::string& name) { … }
void AuctionV8DevToolsAgent::DestroySessions() { … }
void AuctionV8DevToolsAgent::AttachDevToolsSession(
mojo::PendingAssociatedRemote<blink::mojom::DevToolsSessionHost> host,
mojo::PendingAssociatedReceiver<blink::mojom::DevToolsSession>
session_receiver,
mojo::PendingReceiver<blink::mojom::DevToolsSession> io_session_receiver,
blink::mojom::DevToolsSessionStatePtr reattach_session_state,
bool client_expects_binary_responses,
bool client_is_trusted,
const std::string& session_id,
bool session_waits_for_debugger) { … }
void AuctionV8DevToolsAgent::InspectElement(const ::gfx::Point& point) { … }
void AuctionV8DevToolsAgent::ReportChildTargets(
bool report,
bool wait_for_debugger,
ReportChildTargetsCallback callback) { … }
void AuctionV8DevToolsAgent::runMessageLoopOnPause(int context_group_id) { … }
void AuctionV8DevToolsAgent::quitMessageLoopOnPause() { … }
void AuctionV8DevToolsAgent::runIfWaitingForDebugger(int context_group_id) { … }
void AuctionV8DevToolsAgent::SessionDestroyed(
AuctionV8DevToolsSession* session) { … }
}