#include "media/cast/cast_environment.h"
#include <utility>
#include "base/functional/bind.h"
#include "base/location.h"
#include "base/notreached.h"
#include "base/task/single_thread_task_runner.h"
SingleThreadTaskRunner;
namespace media {
namespace cast {
CastEnvironment::CastEnvironment(
const base::TickClock* clock,
scoped_refptr<SingleThreadTaskRunner> main_thread_proxy,
scoped_refptr<SingleThreadTaskRunner> audio_thread_proxy,
scoped_refptr<SingleThreadTaskRunner> video_thread_proxy)
: … { … }
CastEnvironment::~CastEnvironment() = default;
bool CastEnvironment::PostTask(ThreadId identifier,
const base::Location& from_here,
base::OnceClosure task) { … }
bool CastEnvironment::PostDelayedTask(ThreadId identifier,
const base::Location& from_here,
base::OnceClosure task,
base::TimeDelta delay) { … }
scoped_refptr<SingleThreadTaskRunner> CastEnvironment::GetTaskRunner(
ThreadId identifier) const { … }
bool CastEnvironment::CurrentlyOn(ThreadId identifier) { … }
}
}