#include "media/midi/task_service.h"
#include <limits>
#include "base/functional/bind.h"
#include "base/message_loop/message_pump_type.h"
#include "base/strings/stringprintf.h"
#include "base/task/single_thread_task_runner.h"
#include "base/threading/thread_restrictions.h"
#include "build/build_config.h"
namespace midi {
constexpr TaskService::RunnerId TaskService::kDefaultRunnerId;
constexpr TaskService::InstanceId TaskService::kInvalidInstanceId;
TaskService::TaskService() : … { … }
TaskService::~TaskService() { … }
bool TaskService::BindInstance() { … }
bool TaskService::UnbindInstance() { … }
bool TaskService::IsOnTaskRunner(RunnerId runner_id) { … }
void TaskService::PostStaticTask(RunnerId runner_id, base::OnceClosure task) { … }
void TaskService::PostBoundTask(RunnerId runner_id, base::OnceClosure task) { … }
void TaskService::PostBoundDelayedTask(RunnerId runner_id,
base::OnceClosure task,
base::TimeDelta delay) { … }
void TaskService::OverflowInstanceIdForTesting() { … }
scoped_refptr<base::SingleThreadTaskRunner> TaskService::GetTaskRunner(
RunnerId runner_id) { … }
void TaskService::RunTask(InstanceId instance_id,
RunnerId runner_id,
base::OnceClosure task) { … }
bool TaskService::IsInstanceIdStillBound(InstanceId instance_id) { … }
}