#if defined(__clang__)
#pragma clang diagnostic push
#pragma clang diagnostic ignored "-Wunused-private-field"
#endif
#include "services/media_session/public/mojom/media_session.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 "services/media_session/public/mojom/media_session.mojom-params-data.h"
#include "services/media_session/public/mojom/media_session.mojom-shared-message-ids.h"
#include "services/media_session/public/mojom/media_session.mojom-blink-import-headers.h"
#include "services/media_session/public/mojom/media_session.mojom-blink-test-utils.h"
#include "mojo/public/cpp/bindings/lib/wtf_serialization.h"
namespace media_session::mojom::blink {
MediaImage::MediaImage()
: … { … }
MediaImage::MediaImage(
const ::blink::KURL& src_in,
const ::WTF::String& type_in,
WTF::Vector<::gfx::Size> sizes_in)
: … { … }
MediaImage::~MediaImage() = default;
void MediaImage::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool MediaImage::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
ChapterInformation::ChapterInformation()
: … { … }
ChapterInformation::ChapterInformation(
const ::WTF::String& title_in,
::base::TimeDelta startTime_in,
WTF::Vector<MediaImagePtr> artwork_in)
: … { … }
ChapterInformation::~ChapterInformation() = default;
void ChapterInformation::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool ChapterInformation::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaMetadata::MediaMetadata()
: … { … }
MediaMetadata::MediaMetadata(
const ::WTF::String& title_in,
const ::WTF::String& artist_in,
const ::WTF::String& album_in,
const ::WTF::String& source_title_in)
: … { … }
MediaMetadata::MediaMetadata(
const ::WTF::String& title_in,
const ::WTF::String& artist_in,
const ::WTF::String& album_in,
const ::WTF::String& source_title_in,
std::optional<WTF::Vector<ChapterInformationPtr>> chapters_in)
: … { … }
MediaMetadata::~MediaMetadata() = default;
void MediaMetadata::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool MediaMetadata::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaImageBitmap::MediaImageBitmap()
: … { … }
MediaImageBitmap::MediaImageBitmap(
int32_t width_in,
int32_t height_in,
WTF::Vector<uint8_t> pixel_data_in)
: … { … }
MediaImageBitmap::MediaImageBitmap(
int32_t width_in,
int32_t height_in,
WTF::Vector<uint8_t> pixel_data_in,
MediaImageBitmapColorType color_type_in)
: … { … }
MediaImageBitmap::~MediaImageBitmap() = default;
void MediaImageBitmap::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool MediaImageBitmap::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaPosition::MediaPosition()
: … { … }
MediaPosition::MediaPosition(
double playback_rate_in,
::base::TimeDelta duration_in,
::base::TimeDelta position_in,
::base::TimeTicks last_updated_time_in)
: … { … }
MediaPosition::MediaPosition(
double playback_rate_in,
::base::TimeDelta duration_in,
::base::TimeDelta position_in,
::base::TimeTicks last_updated_time_in,
bool end_of_media_in)
: … { … }
MediaPosition::~MediaPosition() = default;
void MediaPosition::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool MediaPosition::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
RemotePlaybackMetadata::RemotePlaybackMetadata()
: … { … }
RemotePlaybackMetadata::RemotePlaybackMetadata(
const WTF::String& video_codec_in,
const WTF::String& audio_codec_in,
bool remote_playback_disabled_in)
: … { … }
RemotePlaybackMetadata::RemotePlaybackMetadata(
const WTF::String& video_codec_in,
const WTF::String& audio_codec_in,
bool remote_playback_disabled_in,
bool remote_playback_started_in,
const WTF::String& unused_field_in)
: … { … }
RemotePlaybackMetadata::RemotePlaybackMetadata(
const WTF::String& video_codec_in,
const WTF::String& audio_codec_in,
bool remote_playback_disabled_in,
bool remote_playback_started_in,
const WTF::String& unused_field_in,
bool is_encrypted_media_in)
: … { … }
RemotePlaybackMetadata::~RemotePlaybackMetadata() = default;
void RemotePlaybackMetadata::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool RemotePlaybackMetadata::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaSessionInfo::MediaSessionInfo()
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in,
std::optional<WTF::Vector<MediaAudioVideoState>> audio_video_states_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in,
std::optional<WTF::Vector<MediaAudioVideoState>> audio_video_states_in,
MicrophoneState microphone_state_in,
CameraState camera_state_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in,
std::optional<WTF::Vector<MediaAudioVideoState>> audio_video_states_in,
MicrophoneState microphone_state_in,
CameraState camera_state_in,
bool muted_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in,
std::optional<WTF::Vector<MediaAudioVideoState>> audio_video_states_in,
MicrophoneState microphone_state_in,
CameraState camera_state_in,
bool muted_in,
bool has_presentation_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in,
std::optional<WTF::Vector<MediaAudioVideoState>> audio_video_states_in,
MicrophoneState microphone_state_in,
CameraState camera_state_in,
bool muted_in,
bool has_presentation_in,
RemotePlaybackMetadataPtr remote_playback_metadata_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in,
std::optional<WTF::Vector<MediaAudioVideoState>> audio_video_states_in,
MicrophoneState microphone_state_in,
CameraState camera_state_in,
bool muted_in,
bool has_presentation_in,
RemotePlaybackMetadataPtr remote_playback_metadata_in,
bool hide_metadata_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in,
std::optional<WTF::Vector<MediaAudioVideoState>> audio_video_states_in,
MicrophoneState microphone_state_in,
CameraState camera_state_in,
bool muted_in,
bool has_presentation_in,
RemotePlaybackMetadataPtr remote_playback_metadata_in,
bool hide_metadata_in,
bool ignore_for_active_session_in)
: … { … }
MediaSessionInfo::MediaSessionInfo(
MediaSessionInfo::SessionState state_in,
bool force_duck_in,
MediaPlaybackState playback_state_in,
bool is_controllable_in,
bool prefer_stop_for_gain_focus_loss_in,
bool is_sensitive_in,
MediaPictureInPictureState picture_in_picture_state_in,
MediaAudioVideoState deprecated_audio_video_state_in,
const WTF::String& audio_sink_id_in,
std::optional<WTF::Vector<MediaAudioVideoState>> audio_video_states_in,
MicrophoneState microphone_state_in,
CameraState camera_state_in,
bool muted_in,
bool has_presentation_in,
RemotePlaybackMetadataPtr remote_playback_metadata_in,
bool hide_metadata_in,
bool ignore_for_active_session_in,
bool meets_visibility_threshold_in)
: … { … }
MediaSessionInfo::~MediaSessionInfo() = default;
void MediaSessionInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool MediaSessionInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
MediaSessionDebugInfo::MediaSessionDebugInfo()
: … { … }
MediaSessionDebugInfo::MediaSessionDebugInfo(
const WTF::String& name_in,
const WTF::String& owner_in,
const WTF::String& state_in)
: … { … }
MediaSessionDebugInfo::~MediaSessionDebugInfo() = default;
size_t MediaSessionDebugInfo::Hash(size_t seed) const { … }
void MediaSessionDebugInfo::WriteIntoTrace(
perfetto::TracedValue traced_context) const { … }
bool MediaSessionDebugInfo::Validate(
const void* data,
mojo::internal::ValidationContext* validation_context) { … }
const char MediaSessionObserver::Name_[] = …;
MediaSessionObserver::IPCStableHashFunction MediaSessionObserver::MessageToMethodInfo_(mojo::Message& message) { … }
const char* MediaSessionObserver::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t MediaSessionObserver::MediaSessionInfoChanged_Sym::IPCStableHash() { … }
uint32_t MediaSessionObserver::MediaSessionMetadataChanged_Sym::IPCStableHash() { … }
uint32_t MediaSessionObserver::MediaSessionActionsChanged_Sym::IPCStableHash() { … }
uint32_t MediaSessionObserver::MediaSessionImagesChanged_Sym::IPCStableHash() { … }
uint32_t MediaSessionObserver::MediaSessionPositionChanged_Sym::IPCStableHash() { … }
# endif
MediaSessionObserverProxy::MediaSessionObserverProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void MediaSessionObserverProxy::MediaSessionInfoChanged(
MediaSessionInfoPtr in_info) { … }
void MediaSessionObserverProxy::MediaSessionMetadataChanged(
MediaMetadataPtr in_metadata) { … }
void MediaSessionObserverProxy::MediaSessionActionsChanged(
const WTF::Vector<MediaSessionAction>& in_action) { … }
void MediaSessionObserverProxy::MediaSessionImagesChanged(
WTF::HashMap<MediaSessionImageType, WTF::Vector<MediaImagePtr>> in_images) { … }
void MediaSessionObserverProxy::MediaSessionPositionChanged(
MediaPositionPtr in_position) { … }
bool MediaSessionObserverStubDispatch::Accept(
MediaSessionObserver* impl,
mojo::Message* message) { … }
bool MediaSessionObserverStubDispatch::AcceptWithResponder(
MediaSessionObserver* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kMediaSessionObserverValidationInfo[] = …;
bool MediaSessionObserverRequestValidator::Accept(mojo::Message* message) { … }
const char MediaSession::Name_[] = …;
MediaSession::IPCStableHashFunction MediaSession::MessageToMethodInfo_(mojo::Message& message) { … }
const char* MediaSession::MessageToMethodName_(mojo::Message& message) { … }
#if !BUILDFLAG(IS_FUCHSIA)
uint32_t MediaSession::GetMediaSessionInfo_Sym::IPCStableHash() { … }
uint32_t MediaSession::GetDebugInfo_Sym::IPCStableHash() { … }
uint32_t MediaSession::StartDucking_Sym::IPCStableHash() { … }
uint32_t MediaSession::StopDucking_Sym::IPCStableHash() { … }
uint32_t MediaSession::Suspend_Sym::IPCStableHash() { … }
uint32_t MediaSession::Resume_Sym::IPCStableHash() { … }
uint32_t MediaSession::AddObserver_Sym::IPCStableHash() { … }
uint32_t MediaSession::PreviousTrack_Sym::IPCStableHash() { … }
uint32_t MediaSession::NextTrack_Sym::IPCStableHash() { … }
uint32_t MediaSession::Seek_Sym::IPCStableHash() { … }
uint32_t MediaSession::Stop_Sym::IPCStableHash() { … }
uint32_t MediaSession::SkipAd_Sym::IPCStableHash() { … }
uint32_t MediaSession::GetMediaImageBitmap_Sym::IPCStableHash() { … }
uint32_t MediaSession::SeekTo_Sym::IPCStableHash() { … }
uint32_t MediaSession::ScrubTo_Sym::IPCStableHash() { … }
uint32_t MediaSession::EnterPictureInPicture_Sym::IPCStableHash() { … }
uint32_t MediaSession::ExitPictureInPicture_Sym::IPCStableHash() { … }
uint32_t MediaSession::SetAudioSinkId_Sym::IPCStableHash() { … }
uint32_t MediaSession::ToggleMicrophone_Sym::IPCStableHash() { … }
uint32_t MediaSession::ToggleCamera_Sym::IPCStableHash() { … }
uint32_t MediaSession::HangUp_Sym::IPCStableHash() { … }
uint32_t MediaSession::Raise_Sym::IPCStableHash() { … }
uint32_t MediaSession::SetMute_Sym::IPCStableHash() { … }
uint32_t MediaSession::RequestMediaRemoting_Sym::IPCStableHash() { … }
uint32_t MediaSession::PreviousSlide_Sym::IPCStableHash() { … }
uint32_t MediaSession::NextSlide_Sym::IPCStableHash() { … }
uint32_t MediaSession::EnterAutoPictureInPicture_Sym::IPCStableHash() { … }
uint32_t MediaSession::GetVisibility_Sym::IPCStableHash() { … }
# endif
class MediaSession_GetMediaSessionInfo_ForwardToCallback
: public mojo::MessageReceiver { … };
class MediaSession_GetDebugInfo_ForwardToCallback
: public mojo::MessageReceiver { … };
class MediaSession_GetMediaImageBitmap_ForwardToCallback
: public mojo::MessageReceiver { … };
class MediaSession_GetVisibility_ForwardToCallback
: public mojo::MessageReceiver { … };
MediaSessionProxy::MediaSessionProxy(mojo::MessageReceiverWithResponder* receiver)
: … { … }
void MediaSessionProxy::GetMediaSessionInfo(
GetMediaSessionInfoCallback callback) { … }
void MediaSessionProxy::GetDebugInfo(
GetDebugInfoCallback callback) { … }
void MediaSessionProxy::StartDucking(
) { … }
void MediaSessionProxy::StopDucking(
) { … }
void MediaSessionProxy::Suspend(
MediaSession::SuspendType in_suspend_type) { … }
void MediaSessionProxy::Resume(
MediaSession::SuspendType in_suspend_type) { … }
void MediaSessionProxy::AddObserver(
::mojo::PendingRemote<MediaSessionObserver> in_observer) { … }
void MediaSessionProxy::PreviousTrack(
) { … }
void MediaSessionProxy::NextTrack(
) { … }
void MediaSessionProxy::Seek(
::base::TimeDelta in_seek_time) { … }
void MediaSessionProxy::Stop(
MediaSession::SuspendType in_suspend_type) { … }
void MediaSessionProxy::SkipAd(
) { … }
void MediaSessionProxy::GetMediaImageBitmap(
MediaImagePtr in_image, int32_t in_minimum_size_px, int32_t in_desired_size_px, GetMediaImageBitmapCallback callback) { … }
void MediaSessionProxy::SeekTo(
::base::TimeDelta in_seek_time) { … }
void MediaSessionProxy::ScrubTo(
::base::TimeDelta in_seek_time) { … }
void MediaSessionProxy::EnterPictureInPicture(
) { … }
void MediaSessionProxy::ExitPictureInPicture(
) { … }
void MediaSessionProxy::SetAudioSinkId(
const WTF::String& in_id) { … }
void MediaSessionProxy::ToggleMicrophone(
) { … }
void MediaSessionProxy::ToggleCamera(
) { … }
void MediaSessionProxy::HangUp(
) { … }
void MediaSessionProxy::Raise(
) { … }
void MediaSessionProxy::SetMute(
bool in_mute) { … }
void MediaSessionProxy::RequestMediaRemoting(
) { … }
void MediaSessionProxy::PreviousSlide(
) { … }
void MediaSessionProxy::NextSlide(
) { … }
void MediaSessionProxy::EnterAutoPictureInPicture(
) { … }
void MediaSessionProxy::GetVisibility(
GetVisibilityCallback callback) { … }
class MediaSession_GetMediaSessionInfo_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool MediaSession_GetMediaSessionInfo_ForwardToCallback::Accept(
mojo::Message* message) { … }
void MediaSession_GetMediaSessionInfo_ProxyToResponder::Run(
MediaSessionInfoPtr in_info) { … }
class MediaSession_GetDebugInfo_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool MediaSession_GetDebugInfo_ForwardToCallback::Accept(
mojo::Message* message) { … }
void MediaSession_GetDebugInfo_ProxyToResponder::Run(
MediaSessionDebugInfoPtr in_info) { … }
class MediaSession_GetMediaImageBitmap_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool MediaSession_GetMediaImageBitmap_ForwardToCallback::Accept(
mojo::Message* message) { … }
void MediaSession_GetMediaImageBitmap_ProxyToResponder::Run(
MediaImageBitmapPtr in_image) { … }
class MediaSession_GetVisibility_ProxyToResponder : public ::mojo::internal::ProxyToResponder { … };
bool MediaSession_GetVisibility_ForwardToCallback::Accept(
mojo::Message* message) { … }
void MediaSession_GetVisibility_ProxyToResponder::Run(
bool in_has_sufficiently_visible_video) { … }
bool MediaSessionStubDispatch::Accept(
MediaSession* impl,
mojo::Message* message) { … }
bool MediaSessionStubDispatch::AcceptWithResponder(
MediaSession* impl,
mojo::Message* message,
std::unique_ptr<mojo::MessageReceiverWithStatus> responder) { … }
namespace {
}
static const mojo::internal::GenericValidationInfo kMediaSessionValidationInfo[] = …;
bool MediaSessionRequestValidator::Accept(mojo::Message* message) { … }
bool MediaSessionResponseValidator::Accept(mojo::Message* message) { … }
}
namespace mojo {
bool StructTraits<::media_session::mojom::blink::MediaImage::DataView, ::media_session::mojom::blink::MediaImagePtr>::Read(
::media_session::mojom::blink::MediaImage::DataView input,
::media_session::mojom::blink::MediaImagePtr* output) { … }
bool StructTraits<::media_session::mojom::blink::ChapterInformation::DataView, ::media_session::mojom::blink::ChapterInformationPtr>::Read(
::media_session::mojom::blink::ChapterInformation::DataView input,
::media_session::mojom::blink::ChapterInformationPtr* output) { … }
bool StructTraits<::media_session::mojom::blink::MediaMetadata::DataView, ::media_session::mojom::blink::MediaMetadataPtr>::Read(
::media_session::mojom::blink::MediaMetadata::DataView input,
::media_session::mojom::blink::MediaMetadataPtr* output) { … }
bool StructTraits<::media_session::mojom::blink::MediaImageBitmap::DataView, ::media_session::mojom::blink::MediaImageBitmapPtr>::Read(
::media_session::mojom::blink::MediaImageBitmap::DataView input,
::media_session::mojom::blink::MediaImageBitmapPtr* output) { … }
bool StructTraits<::media_session::mojom::blink::MediaPosition::DataView, ::media_session::mojom::blink::MediaPositionPtr>::Read(
::media_session::mojom::blink::MediaPosition::DataView input,
::media_session::mojom::blink::MediaPositionPtr* output) { … }
bool StructTraits<::media_session::mojom::blink::RemotePlaybackMetadata::DataView, ::media_session::mojom::blink::RemotePlaybackMetadataPtr>::Read(
::media_session::mojom::blink::RemotePlaybackMetadata::DataView input,
::media_session::mojom::blink::RemotePlaybackMetadataPtr* output) { … }
bool StructTraits<::media_session::mojom::blink::MediaSessionInfo::DataView, ::media_session::mojom::blink::MediaSessionInfoPtr>::Read(
::media_session::mojom::blink::MediaSessionInfo::DataView input,
::media_session::mojom::blink::MediaSessionInfoPtr* output) { … }
bool StructTraits<::media_session::mojom::blink::MediaSessionDebugInfo::DataView, ::media_session::mojom::blink::MediaSessionDebugInfoPtr>::Read(
::media_session::mojom::blink::MediaSessionDebugInfo::DataView input,
::media_session::mojom::blink::MediaSessionDebugInfoPtr* output) { … }
}
namespace media_session::mojom::blink {
void MediaSessionObserverInterceptorForTesting::MediaSessionInfoChanged(MediaSessionInfoPtr info) { … }
void MediaSessionObserverInterceptorForTesting::MediaSessionMetadataChanged(MediaMetadataPtr metadata) { … }
void MediaSessionObserverInterceptorForTesting::MediaSessionActionsChanged(const WTF::Vector<MediaSessionAction>& action) { … }
void MediaSessionObserverInterceptorForTesting::MediaSessionImagesChanged(WTF::HashMap<MediaSessionImageType, WTF::Vector<MediaImagePtr>> images) { … }
void MediaSessionObserverInterceptorForTesting::MediaSessionPositionChanged(MediaPositionPtr position) { … }
MediaSessionObserverAsyncWaiter::MediaSessionObserverAsyncWaiter(
MediaSessionObserver* proxy) : … { … }
MediaSessionObserverAsyncWaiter::~MediaSessionObserverAsyncWaiter() = default;
void MediaSessionInterceptorForTesting::GetMediaSessionInfo(GetMediaSessionInfoCallback callback) { … }
void MediaSessionInterceptorForTesting::GetDebugInfo(GetDebugInfoCallback callback) { … }
void MediaSessionInterceptorForTesting::StartDucking() { … }
void MediaSessionInterceptorForTesting::StopDucking() { … }
void MediaSessionInterceptorForTesting::Suspend(MediaSession::SuspendType suspend_type) { … }
void MediaSessionInterceptorForTesting::Resume(MediaSession::SuspendType suspend_type) { … }
void MediaSessionInterceptorForTesting::AddObserver(::mojo::PendingRemote<MediaSessionObserver> observer) { … }
void MediaSessionInterceptorForTesting::PreviousTrack() { … }
void MediaSessionInterceptorForTesting::NextTrack() { … }
void MediaSessionInterceptorForTesting::Seek(::base::TimeDelta seek_time) { … }
void MediaSessionInterceptorForTesting::Stop(MediaSession::SuspendType suspend_type) { … }
void MediaSessionInterceptorForTesting::SkipAd() { … }
void MediaSessionInterceptorForTesting::GetMediaImageBitmap(MediaImagePtr image, int32_t minimum_size_px, int32_t desired_size_px, GetMediaImageBitmapCallback callback) { … }
void MediaSessionInterceptorForTesting::SeekTo(::base::TimeDelta seek_time) { … }
void MediaSessionInterceptorForTesting::ScrubTo(::base::TimeDelta seek_time) { … }
void MediaSessionInterceptorForTesting::EnterPictureInPicture() { … }
void MediaSessionInterceptorForTesting::ExitPictureInPicture() { … }
void MediaSessionInterceptorForTesting::SetAudioSinkId(const WTF::String& id) { … }
void MediaSessionInterceptorForTesting::ToggleMicrophone() { … }
void MediaSessionInterceptorForTesting::ToggleCamera() { … }
void MediaSessionInterceptorForTesting::HangUp() { … }
void MediaSessionInterceptorForTesting::Raise() { … }
void MediaSessionInterceptorForTesting::SetMute(bool mute) { … }
void MediaSessionInterceptorForTesting::RequestMediaRemoting() { … }
void MediaSessionInterceptorForTesting::PreviousSlide() { … }
void MediaSessionInterceptorForTesting::NextSlide() { … }
void MediaSessionInterceptorForTesting::EnterAutoPictureInPicture() { … }
void MediaSessionInterceptorForTesting::GetVisibility(GetVisibilityCallback callback) { … }
MediaSessionAsyncWaiter::MediaSessionAsyncWaiter(
MediaSession* proxy) : … { … }
MediaSessionAsyncWaiter::~MediaSessionAsyncWaiter() = default;
void MediaSessionAsyncWaiter::GetMediaSessionInfo(
MediaSessionInfoPtr* out_info) { … }
MediaSessionInfoPtr MediaSessionAsyncWaiter::GetMediaSessionInfo(
) { … }
void MediaSessionAsyncWaiter::GetDebugInfo(
MediaSessionDebugInfoPtr* out_info) { … }
MediaSessionDebugInfoPtr MediaSessionAsyncWaiter::GetDebugInfo(
) { … }
void MediaSessionAsyncWaiter::GetMediaImageBitmap(
MediaImagePtr image, int32_t minimum_size_px, int32_t desired_size_px, MediaImageBitmapPtr* out_image) { … }
MediaImageBitmapPtr MediaSessionAsyncWaiter::GetMediaImageBitmap(
MediaImagePtr image, int32_t minimum_size_px, int32_t desired_size_px) { … }
void MediaSessionAsyncWaiter::GetVisibility(
bool* out_has_sufficiently_visible_video) { … }
bool MediaSessionAsyncWaiter::GetVisibility(
) { … }
}
#if defined(__clang__)
#pragma clang diagnostic pop
#endif