#ifndef THIRD_PARTY_BLINK_PUBLIC_WEB_MODULES_MEDIA_WEB_MEDIA_PLAYER_UTIL_H_
#define THIRD_PARTY_BLINK_PUBLIC_WEB_MODULES_MEDIA_WEB_MEDIA_PLAYER_UTIL_H_
#include "base/time/time.h"
#include "media/base/audio_renderer_sink.h"
#include "media/base/eme_constants.h"
#include "media/base/pipeline_status.h"
#include "media/base/ranges.h"
#include "media/mojo/mojom/media_metrics_provider.mojom-shared.h"
#include "third_party/blink/public/platform/web_common.h"
#include "third_party/blink/public/platform/web_encrypted_media_types.h"
#include "third_party/blink/public/platform/web_media_player.h"
#include "third_party/blink/public/platform/web_security_origin.h"
#include "third_party/blink/public/platform/web_set_sink_id_callbacks.h"
#include "third_party/blink/public/platform/web_time_range.h"
namespace media {
class MediaLog;
}
namespace blink {
BLINK_MODULES_EXPORT media::mojom::MediaURLScheme GetMediaURLScheme(
const WebURL& url);
BLINK_MODULES_EXPORT WebTimeRanges
ConvertToWebTimeRanges(const media::Ranges<base::TimeDelta>& ranges);
BLINK_MODULES_EXPORT WebMediaPlayer::NetworkState PipelineErrorToNetworkState(
media::PipelineStatus error);
BLINK_MODULES_EXPORT void ReportMetrics(WebMediaPlayer::LoadType load_type,
const WebURL& url,
media::MediaLog* media_log);
BLINK_MODULES_EXPORT media::OutputDeviceStatusCB ConvertToOutputDeviceStatusCB(
WebSetSinkIdCompleteCallback completion_callback);
}
#endif