#ifndef COMPONENTS_BACKGROUND_TASK_SCHEDULER_BACKGROUND_TASK_SCHEDULER_H_
#define COMPONENTS_BACKGROUND_TASK_SCHEDULER_BACKGROUND_TASK_SCHEDULER_H_
#include "components/background_task_scheduler/task_info.h"
#include "components/keyed_service/core/keyed_service.h"
namespace background_task {
class BackgroundTaskScheduler : public KeyedService {
public:
BackgroundTaskScheduler(const BackgroundTaskScheduler&) = delete;
BackgroundTaskScheduler& operator=(const BackgroundTaskScheduler&) = delete;
virtual bool Schedule(const TaskInfo& task_info) = 0;
virtual void Cancel(int task_id) = 0;
protected:
BackgroundTaskScheduler() = default;
~BackgroundTaskScheduler() override = default;
};
}
#endif