#include "remoting/base/auto_thread_task_runner.h"
#include <utility>
#include "base/check.h"
#include "base/task/single_thread_task_runner.h"
#include "base/time/time.h"
namespace remoting {
#if BUILDFLAG(IS_CHROMEOS)
AutoThreadTaskRunner::AutoThreadTaskRunner(
scoped_refptr<base::SingleThreadTaskRunner> task_runner)
: task_runner_(task_runner) {}
#endif
AutoThreadTaskRunner::AutoThreadTaskRunner(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
base::OnceClosure stop_task)
: … { … }
bool AutoThreadTaskRunner::PostDelayedTask(const base::Location& from_here,
base::OnceClosure task,
base::TimeDelta delay) { … }
bool AutoThreadTaskRunner::PostNonNestableDelayedTask(
const base::Location& from_here,
base::OnceClosure task,
base::TimeDelta delay) { … }
bool AutoThreadTaskRunner::RunsTasksInCurrentSequence() const { … }
AutoThreadTaskRunner::~AutoThreadTaskRunner() { … }
}