#include "headless/lib/browser/headless_devtools_manager_delegate.h"
#include "base/containers/contains.h"
#include "base/not_fatal_until.h"
#include "build/build_config.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/devtools_agent_host_client_channel.h"
#include "content/public/browser/web_contents.h"
#include "headless/lib/browser/headless_browser_context_impl.h"
#include "headless/lib/browser/headless_browser_impl.h"
#include "headless/lib/browser/headless_web_contents_impl.h"
#include "headless/lib/browser/protocol/headless_devtools_session.h"
#include "ui/base/resource/resource_bundle.h"
namespace headless {
HeadlessDevToolsManagerDelegate::HeadlessDevToolsManagerDelegate(
base::WeakPtr<HeadlessBrowserImpl> browser)
: … { … }
HeadlessDevToolsManagerDelegate::~HeadlessDevToolsManagerDelegate() = default;
void HeadlessDevToolsManagerDelegate::HandleCommand(
content::DevToolsAgentHostClientChannel* channel,
base::span<const uint8_t> message,
NotHandledCallback callback) { … }
scoped_refptr<content::DevToolsAgentHost>
HeadlessDevToolsManagerDelegate::CreateNewTarget(
const GURL& url,
content::DevToolsManagerDelegate::TargetType target_type) { … }
bool HeadlessDevToolsManagerDelegate::HasBundledFrontendResources() { … }
void HeadlessDevToolsManagerDelegate::ClientAttached(
content::DevToolsAgentHostClientChannel* channel) { … }
void HeadlessDevToolsManagerDelegate::ClientDetached(
content::DevToolsAgentHostClientChannel* channel) { … }
std::vector<content::BrowserContext*>
HeadlessDevToolsManagerDelegate::GetBrowserContexts() { … }
content::BrowserContext*
HeadlessDevToolsManagerDelegate::GetDefaultBrowserContext() { … }
content::BrowserContext*
HeadlessDevToolsManagerDelegate::CreateBrowserContext() { … }
void HeadlessDevToolsManagerDelegate::DisposeBrowserContext(
content::BrowserContext* browser_context,
DisposeCallback callback) { … }
}