#include "chrome/browser/ui/global_media_controls/cast_media_session_controller.h"
#include "base/time/time.h"
#include "components/media_router/common/mojom/media_status.mojom.h"
#include "content/public/browser/browser_task_traits.h"
#include "content/public/browser/browser_thread.h"
#include "services/media_session/public/mojom/constants.mojom.h"
namespace {
constexpr base::TimeDelta kDefaultSeekTimeSeconds = …;
bool IsPlaying(const media_router::mojom::MediaStatusPtr& media_status) { … }
}
CastMediaSessionController::CastMediaSessionController(
mojo::Remote<media_router::mojom::MediaController> route_controller)
: … { … }
CastMediaSessionController::~CastMediaSessionController() { … }
void CastMediaSessionController::Send(
media_session::mojom::MediaSessionAction action) { … }
void CastMediaSessionController::OnMediaStatusUpdated(
media_router::mojom::MediaStatusPtr media_status) { … }
void CastMediaSessionController::SeekTo(base::TimeDelta time) { … }
void CastMediaSessionController::SetMute(bool mute) { … }
void CastMediaSessionController::SetVolume(float volume) { … }
void CastMediaSessionController::FlushForTesting() { … }
media_router::mojom::MediaStatusPtr
CastMediaSessionController::GetMediaStatusForTesting() { … }
base::TimeDelta CastMediaSessionController::PutWithinBounds(
const base::TimeDelta& time) { … }
void CastMediaSessionController::IncrementCurrentTimeAfterOneSecond() { … }
void CastMediaSessionController::IncrementCurrentTime() { … }