#include "services/media_session/public/cpp/media_position.h"
#include "base/check.h"
#include "base/strings/stringprintf.h"
namespace media_session {
MediaPosition::MediaPosition() = default;
MediaPosition::MediaPosition(double playback_rate,
base::TimeDelta duration,
base::TimeDelta position,
bool end_of_media)
: … { … }
MediaPosition::~MediaPosition() = default;
base::TimeDelta MediaPosition::duration() const { … }
double MediaPosition::playback_rate() const { … }
base::TimeTicks MediaPosition::last_updated_time() const { … }
base::TimeDelta MediaPosition::GetPosition() const { … }
base::TimeDelta MediaPosition::GetPositionAtTime(base::TimeTicks time) const { … }
bool MediaPosition::operator==(const MediaPosition& other) const { … }
bool MediaPosition::operator!=(const MediaPosition& other) const { … }
std::string MediaPosition::ToString() const { … }
}