#include "chrome/browser/devtools/remote_debugging_server.h"
#include <utility>
#include "base/command_line.h"
#include "base/lazy_instance.h"
#include "base/path_service.h"
#include "base/strings/string_number_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/devtools/chrome_devtools_manager_delegate.h"
#include "chrome/browser/devtools/devtools_window.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/common/chrome_paths.h"
#include "chrome/common/chrome_switches.h"
#include "content/public/browser/devtools_agent_host.h"
#include "content/public/browser/devtools_socket_factory.h"
#include "content/public/common/content_switches.h"
#include "net/base/filename_util.h"
#include "net/base/net_errors.h"
#include "net/log/net_log_source.h"
#include "net/socket/tcp_server_socket.h"
#include "third_party/blink/public/public_buildflags.h"
#include "ui/base/resource/resource_bundle.h"
namespace {
base::LazyInstance<bool>::Leaky g_tethering_enabled = …;
const uint16_t kMinTetheringPort = …;
const uint16_t kMaxTetheringPort = …;
const int kBackLog = …;
class TCPServerSocketFactory
: public content::DevToolsSocketFactory { … };
}
void RemoteDebuggingServer::EnableTetheringForDebug() { … }
RemoteDebuggingServer::RemoteDebuggingServer() { … }
RemoteDebuggingServer::~RemoteDebuggingServer() { … }