chromium/out/Default/gen/media/mojo/mojom/renderer.mojom-blink.cc

// media/mojo/mojom/renderer.mojom-blink.cc is auto generated by mojom_bindings_generator.py, do not edit

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif

#include "media/mojo/mojom/renderer.mojom-blink.h"

#include <math.h>
#include <stdint.h>
#include <utility>

#include "base/debug/alias.h"
#include "base/hash/md5_constexpr.h"
#include "base/run_loop.h"
#include "base/strings/string_number_conversions.h"
#include "base/task/thread_pool/thread_pool_instance.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/typed_macros.h"
#include "mojo/public/cpp/bindings/features.h"
#include "mojo/public/cpp/bindings/lib/default_construct_tag_internal.h"
#include "mojo/public/cpp/bindings/lib/generated_code_util.h"
#include "mojo/public/cpp/bindings/lib/message_internal.h"
#include "mojo/public/cpp/bindings/lib/proxy_to_responder.h"
#include "mojo/public/cpp/bindings/lib/send_message_helper.h"
#include "mojo/public/cpp/bindings/lib/serialization_util.h"
#include "mojo/public/cpp/bindings/lib/unserialized_message_context.h"
#include "mojo/public/cpp/bindings/lib/validate_params.h"
#include "mojo/public/cpp/bindings/lib/validation_errors.h"
#include "mojo/public/cpp/bindings/mojo_buildflags.h"
#include "mojo/public/cpp/bindings/urgent_message_scope.h"
#include "mojo/public/interfaces/bindings/interface_control_messages.mojom.h"
#include "third_party/perfetto/include/perfetto/tracing/traced_value.h"

#include "media/mojo/mojom/renderer.mojom-params-data.h"
#include "media/mojo/mojom/renderer.mojom-shared-message-ids.h"

#include "media/mojo/mojom/renderer.mojom-blink-import-headers.h"
#include "media/mojo/mojom/renderer.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"


namespace media::mojom::blink {
MediaUrlParams::MediaUrlParams()
    :{}

MediaUrlParams::MediaUrlParams(
    const ::blink::KURL& media_url_in,
    const ::net::SiteForCookies& site_for_cookies_in,
    const ::scoped_refptr<const ::blink::SecurityOrigin>& top_frame_origin_in,
    ::net::StorageAccessApiStatus storage_access_api_status_in,
    bool allow_credentials_in,
    bool is_hls_in,
    const WTF::HashMap<WTF::String, WTF::String>& headers_in)
    :{}

MediaUrlParams::~MediaUrlParams() = default;

void MediaUrlParams::WriteIntoTrace(
    perfetto::TracedValue traced_context) const {}

bool MediaUrlParams::Validate(
    const void* data,
    mojo::internal::ValidationContext* validation_context) {}
const char Renderer::Name_[] =;

Renderer::IPCStableHashFunction Renderer::MessageToMethodInfo_(mojo::Message& message) {}


const char* Renderer::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t Renderer::Initialize_Sym::IPCStableHash() {}
uint32_t Renderer::Flush_Sym::IPCStableHash() {}
uint32_t Renderer::StartPlayingFrom_Sym::IPCStableHash() {}
uint32_t Renderer::SetPlaybackRate_Sym::IPCStableHash() {}
uint32_t Renderer::SetVolume_Sym::IPCStableHash() {}
uint32_t Renderer::SetCdm_Sym::IPCStableHash() {}
uint32_t Renderer::SetLatencyHint_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

class Renderer_Initialize_ForwardToCallback
    : public mojo::MessageReceiver {};

class Renderer_Flush_ForwardToCallback
    : public mojo::MessageReceiver {};

class Renderer_SetCdm_ForwardToCallback
    : public mojo::MessageReceiver {};

RendererProxy::RendererProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void RendererProxy::Initialize(
    ::mojo::PendingAssociatedRemote<RendererClient> in_client, std::optional<WTF::Vector<::mojo::PendingRemote<::media::mojom::blink::DemuxerStream>>> in_streams, MediaUrlParamsPtr in_media_url_params, InitializeCallback callback) {}

void RendererProxy::Flush(
    FlushCallback callback) {}

void RendererProxy::StartPlayingFrom(
    ::base::TimeDelta in_time) {}

void RendererProxy::SetPlaybackRate(
    double in_playback_rate) {}

void RendererProxy::SetVolume(
    float in_volume) {}

void RendererProxy::SetCdm(
    const std::optional<::base::UnguessableToken>& in_cdm_id, SetCdmCallback callback) {}

void RendererProxy::SetLatencyHint(
    std::optional<::base::TimeDelta> in_latency_hint) {}
class Renderer_Initialize_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool Renderer_Initialize_ForwardToCallback::Accept(
    mojo::Message* message) {}

void Renderer_Initialize_ProxyToResponder::Run(
    bool in_success) {}
class Renderer_Flush_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool Renderer_Flush_ForwardToCallback::Accept(
    mojo::Message* message) {}

void Renderer_Flush_ProxyToResponder::Run(
    ) {}
class Renderer_SetCdm_ProxyToResponder : public ::mojo::internal::ProxyToResponder {};

bool Renderer_SetCdm_ForwardToCallback::Accept(
    mojo::Message* message) {}

void Renderer_SetCdm_ProxyToResponder::Run(
    bool in_success) {}

// static
bool RendererStubDispatch::Accept(
    Renderer* impl,
    mojo::Message* message) {}

// static
bool RendererStubDispatch::AcceptWithResponder(
    Renderer* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kRendererValidationInfo[] =;

bool RendererRequestValidator::Accept(mojo::Message* message) {}

bool RendererResponseValidator::Accept(mojo::Message* message) {}
const char RendererClient::Name_[] =;

RendererClient::IPCStableHashFunction RendererClient::MessageToMethodInfo_(mojo::Message& message) {}


const char* RendererClient::MessageToMethodName_(mojo::Message& message) {}

#if !BUILDFLAG(IS_FUCHSIA)
uint32_t RendererClient::OnTimeUpdate_Sym::IPCStableHash() {}
uint32_t RendererClient::OnBufferingStateChange_Sym::IPCStableHash() {}
uint32_t RendererClient::OnEnded_Sym::IPCStableHash() {}
uint32_t RendererClient::OnError_Sym::IPCStableHash() {}
uint32_t RendererClient::OnAudioConfigChange_Sym::IPCStableHash() {}
uint32_t RendererClient::OnVideoConfigChange_Sym::IPCStableHash() {}
uint32_t RendererClient::OnVideoNaturalSizeChange_Sym::IPCStableHash() {}
uint32_t RendererClient::OnVideoOpacityChange_Sym::IPCStableHash() {}
uint32_t RendererClient::OnStatisticsUpdate_Sym::IPCStableHash() {}
uint32_t RendererClient::OnWaiting_Sym::IPCStableHash() {}
# endif // !BUILDFLAG(IS_FUCHSIA)

RendererClientProxy::RendererClientProxy(mojo::MessageReceiverWithResponder* receiver)
    :{}

void RendererClientProxy::OnTimeUpdate(
    ::base::TimeDelta in_time, ::base::TimeDelta in_max_time, ::base::TimeTicks in_capture_time) {}

void RendererClientProxy::OnBufferingStateChange(
    ::media::mojom::blink::BufferingState in_state, ::media::mojom::blink::BufferingStateChangeReason in_reason) {}

void RendererClientProxy::OnEnded(
    ) {}

void RendererClientProxy::OnError(
    ::media::mojom::blink::PipelineStatusPtr in_status) {}

void RendererClientProxy::OnAudioConfigChange(
    ::media::mojom::blink::AudioDecoderConfigPtr in_config) {}

void RendererClientProxy::OnVideoConfigChange(
    ::media::mojom::blink::VideoDecoderConfigPtr in_config) {}

void RendererClientProxy::OnVideoNaturalSizeChange(
    const ::gfx::Size& in_size) {}

void RendererClientProxy::OnVideoOpacityChange(
    bool in_opaque) {}

void RendererClientProxy::OnStatisticsUpdate(
    ::media::mojom::blink::PipelineStatisticsPtr in_stats) {}

void RendererClientProxy::OnWaiting(
    ::media::mojom::blink::WaitingReason in_reason) {}

// static
bool RendererClientStubDispatch::Accept(
    RendererClient* impl,
    mojo::Message* message) {}

// static
bool RendererClientStubDispatch::AcceptWithResponder(
    RendererClient* impl,
    mojo::Message* message,
    std::unique_ptr<mojo::MessageReceiverWithStatus> responder) {}
namespace {
}  // namespace
static const mojo::internal::GenericValidationInfo kRendererClientValidationInfo[] =;

bool RendererClientRequestValidator::Accept(mojo::Message* message) {}



}  // media::mojom::blink


namespace mojo {


// static
bool StructTraits<::media::mojom::blink::MediaUrlParams::DataView, ::media::mojom::blink::MediaUrlParamsPtr>::Read(
    ::media::mojom::blink::MediaUrlParams::DataView input,
    ::media::mojom::blink::MediaUrlParamsPtr* output) {}

}  // namespace mojo


// Symbols declared in the -test-utils.h header are defined here instead of a
// separate .cc file to save compile time.


namespace media::mojom::blink {


void RendererInterceptorForTesting::Initialize(::mojo::PendingAssociatedRemote<RendererClient> client, std::optional<WTF::Vector<::mojo::PendingRemote<::media::mojom::blink::DemuxerStream>>> streams, MediaUrlParamsPtr media_url_params, InitializeCallback callback) {}
void RendererInterceptorForTesting::Flush(FlushCallback callback) {}
void RendererInterceptorForTesting::StartPlayingFrom(::base::TimeDelta time) {}
void RendererInterceptorForTesting::SetPlaybackRate(double playback_rate) {}
void RendererInterceptorForTesting::SetVolume(float volume) {}
void RendererInterceptorForTesting::SetCdm(const std::optional<::base::UnguessableToken>& cdm_id, SetCdmCallback callback) {}
void RendererInterceptorForTesting::SetLatencyHint(std::optional<::base::TimeDelta> latency_hint) {}
RendererAsyncWaiter::RendererAsyncWaiter(
    Renderer* proxy) :{}

RendererAsyncWaiter::~RendererAsyncWaiter() = default;

void RendererAsyncWaiter::Initialize(
    ::mojo::PendingAssociatedRemote<RendererClient> client, std::optional<WTF::Vector<::mojo::PendingRemote<::media::mojom::blink::DemuxerStream>>> streams, MediaUrlParamsPtr media_url_params, bool* out_success) {}

bool RendererAsyncWaiter::Initialize(
    ::mojo::PendingAssociatedRemote<RendererClient> client, std::optional<WTF::Vector<::mojo::PendingRemote<::media::mojom::blink::DemuxerStream>>> streams, MediaUrlParamsPtr media_url_params) {}

void RendererAsyncWaiter::Flush(
    ) {}



void RendererAsyncWaiter::SetCdm(
    const std::optional<::base::UnguessableToken>& cdm_id, bool* out_success) {}

bool RendererAsyncWaiter::SetCdm(
    const std::optional<::base::UnguessableToken>& cdm_id) {}




void RendererClientInterceptorForTesting::OnTimeUpdate(::base::TimeDelta time, ::base::TimeDelta max_time, ::base::TimeTicks capture_time) {}
void RendererClientInterceptorForTesting::OnBufferingStateChange(::media::mojom::blink::BufferingState state, ::media::mojom::blink::BufferingStateChangeReason reason) {}
void RendererClientInterceptorForTesting::OnEnded() {}
void RendererClientInterceptorForTesting::OnError(::media::mojom::blink::PipelineStatusPtr status) {}
void RendererClientInterceptorForTesting::OnAudioConfigChange(::media::mojom::blink::AudioDecoderConfigPtr config) {}
void RendererClientInterceptorForTesting::OnVideoConfigChange(::media::mojom::blink::VideoDecoderConfigPtr config) {}
void RendererClientInterceptorForTesting::OnVideoNaturalSizeChange(const ::gfx::Size& size) {}
void RendererClientInterceptorForTesting::OnVideoOpacityChange(bool opaque) {}
void RendererClientInterceptorForTesting::OnStatisticsUpdate(::media::mojom::blink::PipelineStatisticsPtr stats) {}
void RendererClientInterceptorForTesting::OnWaiting(::media::mojom::blink::WaitingReason reason) {}
RendererClientAsyncWaiter::RendererClientAsyncWaiter(
    RendererClient* proxy) :{}

RendererClientAsyncWaiter::~RendererClientAsyncWaiter() = default;






}  // media::mojom::blink


#if defined(__clang__)
#pragma clang diagnostic pop
#endif