chromium/media/base/media_content_type.h

// Copyright 2016 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef MEDIA_BASE_MEDIA_CONTENT_TYPE_H_
#define MEDIA_BASE_MEDIA_CONTENT_TYPE_H_

#include "base/time/time.h"
#include "media/base/media_export.h"

namespace media {

// The content type of a media player, which will be used by MediaSession to
// control its players.
enum class MediaContentType {};

// Utility function for deciding the MediaContentType of a player based on its
// duration.
MEDIA_EXPORT MediaContentType
DurationToMediaContentType(base::TimeDelta duration);

}  // namespace media

#endif  // MEDIA_BASE_MEDIA_CONTENT_TYPE_H_