#include "headless/lib/renderer/headless_content_renderer_client.h"
#include <memory>
#include "base/check_deref.h"
#include "base/command_line.h"
#include "base/strings/string_util.h"
#include "content/public/common/web_identity.h"
#include "content/public/renderer/render_thread.h"
#include "headless/public/switches.h"
#include "media/base/video_codecs.h"
#include "printing/buildflags/buildflags.h"
#include "third_party/blink/public/platform/url_loader_throttle_provider.h"
#include "third_party/blink/public/web/modules/credentialmanagement/throttle_helper.h"
#if BUILDFLAG(ENABLE_PRINTING)
#include "components/printing/renderer/print_render_frame_helper.h"
#include "headless/lib/renderer/headless_print_render_frame_helper_delegate.h"
#endif
namespace {
class HeadlessContentRendererUrlLoaderThrottleProvider
: public blink::URLLoaderThrottleProvider { … };
}
namespace headless {
HeadlessContentRendererClient::HeadlessContentRendererClient() { … }
HeadlessContentRendererClient::~HeadlessContentRendererClient() = default;
void HeadlessContentRendererClient::RenderFrameCreated(
content::RenderFrame* render_frame) { … }
bool HeadlessContentRendererClient::IsSupportedVideoType(
const media::VideoType& type) { … }
std::unique_ptr<blink::URLLoaderThrottleProvider>
HeadlessContentRendererClient::CreateURLLoaderThrottleProvider(
blink::URLLoaderThrottleProviderType provider_type) { … }
}