#include "content/browser/media/session/media_session_service_impl.h"
#include <memory>
#include "base/memory/ptr_util.h"
#include "content/browser/media/session/media_metadata_sanitizer.h"
#include "content/browser/media/session/media_session_impl.h"
#include "content/browser/web_contents/web_contents_impl.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/web_contents.h"
#include "mojo/public/cpp/bindings/self_owned_receiver.h"
namespace content {
MediaSessionServiceImpl::MediaSessionServiceImpl(
RenderFrameHost* render_frame_host)
: … { … }
MediaSessionServiceImpl::~MediaSessionServiceImpl() { … }
void MediaSessionServiceImpl::Create(
RenderFrameHost* render_frame_host,
mojo::PendingReceiver<blink::mojom::MediaSessionService> receiver) { … }
GlobalRenderFrameHostId MediaSessionServiceImpl::GetRenderFrameHostId() const { … }
RenderFrameHost* MediaSessionServiceImpl::GetRenderFrameHost() const { … }
void MediaSessionServiceImpl::DidFinishNavigation() { … }
void MediaSessionServiceImpl::FlushForTesting() { … }
void MediaSessionServiceImpl::SetClient(
mojo::PendingRemote<blink::mojom::MediaSessionClient> client) { … }
void MediaSessionServiceImpl::SetPlaybackState(
blink::mojom::MediaSessionPlaybackState state) { … }
void MediaSessionServiceImpl::SetPositionState(
const std::optional<media_session::MediaPosition>& position) { … }
void MediaSessionServiceImpl::SetMetadata(
blink::mojom::SpecMediaMetadataPtr metadata) { … }
void MediaSessionServiceImpl::SetMicrophoneState(
media_session::mojom::MicrophoneState microphone_state) { … }
void MediaSessionServiceImpl::SetCameraState(
media_session::mojom::CameraState camera_state) { … }
void MediaSessionServiceImpl::EnableAction(
media_session::mojom::MediaSessionAction action) { … }
void MediaSessionServiceImpl::DisableAction(
media_session::mojom::MediaSessionAction action) { … }
void MediaSessionServiceImpl::ClearActions() { … }
MediaSessionImpl* MediaSessionServiceImpl::GetMediaSession() { … }
}