#include "headless/lib/browser/command_line_handler.h"
#include <cstdio>
#include "base/files/file_util.h"
#include "base/logging.h"
#include "build/build_config.h"
#include "cc/base/switches.h"
#include "components/viz/common/switches.h"
#include "content/public/common/content_switches.h"
#include "headless/public/switches.h"
#include "net/http/http_util.h"
#include "net/proxy_resolution/proxy_config.h"
#include "third_party/blink/public/common/switches.h"
#include "ui/gfx/font_render_params.h"
#include "ui/gfx/geometry/size.h"
namespace headless {
namespace {
void HandleDeterministicModeSwitch(base::CommandLine& command_line) { … }
bool HandleRemoteDebuggingPort(base::CommandLine& command_line,
HeadlessBrowser::Options::Builder& builder) { … }
void HandleProxyServer(base::CommandLine& command_line,
HeadlessBrowser::Options::Builder& builder) { … }
bool HandleWindowSize(base::CommandLine& command_line,
HeadlessBrowser::Options::Builder& builder) { … }
bool HandleFontRenderHinting(base::CommandLine& command_line,
HeadlessBrowser::Options::Builder& builder) { … }
base::FilePath EnsureDirectoryExists(const base::FilePath& file_path) { … }
}
bool HandleCommandLineSwitches(base::CommandLine& command_line,
HeadlessBrowser::Options::Builder& builder) { … }
}