#include "content/web_test/browser/web_test_devtools_bindings.h"
#include "base/memory/raw_ptr.h"
#include <memory>
#include "base/command_line.h"
#include "base/functional/callback_helpers.h"
#include "base/path_service.h"
#include "base/strings/string_util.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "content/shell/browser/shell.h"
#if !BUILDFLAG(IS_ANDROID) && !BUILDFLAG(IS_IOS)
#include "content/shell/common/shell_switches.h"
#endif
#include "content/web_test/browser/web_test_control_host.h"
#include "content/web_test/common/web_test_switches.h"
#include "net/base/filename_util.h"
namespace {
const char kDevToolsFrontendOrigin[] = …;
const char kOriginToReplace[] = …;
GURL GetInspectedPageURL(const GURL& test_url) { … }
}
namespace content {
class WebTestDevToolsBindings::SecondaryObserver : public WebContentsObserver { … };
GURL WebTestDevToolsBindings::MapTestURLIfNeeded(const GURL& test_url,
bool* is_devtools_test) { … }
void WebTestDevToolsBindings::NavigateDevToolsFrontend() { … }
void WebTestDevToolsBindings::Attach() { … }
WebTestDevToolsBindings::WebTestDevToolsBindings(
WebContents* devtools_contents,
WebContents* inspected_contents,
const GURL& frontend_url)
: … { … }
WebTestDevToolsBindings::~WebTestDevToolsBindings() { … }
void WebTestDevToolsBindings::PrimaryMainDocumentElementAvailable() { … }
}